'no_self_pings_option' ) ); register_setting( 'discussion', 'no_self_pings_option' ); } add_action( 'admin_init', 'no_self_ping_settings_init' ); /** * Section callback * * Create the new section that we've added to the Discussion settings screen */ function no_self_ping_section_callback() { /* translators: %s: URL of website */ $text = __( 'By default, No Self Pings will exclude pings for this site (%s) but you can supply additional URLs below. Separate multiple URLs with line breaks.', 'no-self-ping' ); echo esc_html( sprintf( $text, esc_url( home_url() ) ) ); } /** * Settings callback * * Output the settings field */ function no_self_ping_setting_callback() { $urls = sanitize_option( 'ping_sites', get_option( 'no_self_pings_option', '' ) ); echo ''; }