Lines:
1 to 71 of 71
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin */ if ( ! defined( 'WPSEO_VERSION' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); } /* function wpseo_ajax_json_echo_die() – Convenience function to JSON encode and echo results and then die. */ /* function wpseo_set_option() – Function used from AJAX calls, takes it variables from $_POST, dies on exit. */ add_action( 'wp_ajax_wpseo_set_option', 'wpseo_set_option' ); /** * Since 3.2 Notifications are dismissed in the Notification Center. */ add_action( 'wp_ajax_yoast_dismiss_notification', [ 'Yoast_Notification_Center', 'ajax_dismiss_notification' ] ); /* function wpseo_set_ignore() – Function used to remove the admin notices for several purposes, dies on exit. */ add_action( 'wp_ajax_wpseo_set_ignore', 'wpseo_set_ignore' ); /* function wpseo_save_title() – Save an individual SEO title from the Bulk Editor. */ add_action( 'wp_ajax_wpseo_save_title', 'wpseo_save_title' ); /* function wpseo_save_description() – Save an individual meta description from the Bulk Editor. */ add_action( 'wp_ajax_wpseo_save_metadesc', 'wpseo_save_description' ); /* function wpseo_save_what() – Save titles & descriptions. */ /* function wpseo_upsert_meta() – Helper function to update a post’s meta data, returning relevant information about the information updated and the results or the meta update. */ /* function wpseo_save_all_titles() – Save all titles sent from the Bulk Editor. */ add_action( 'wp_ajax_wpseo_save_all_titles', 'wpseo_save_all_titles' ); /* function wpseo_save_all_descriptions() – Save all description sent from the Bulk Editor. */ add_action( 'wp_ajax_wpseo_save_all_descriptions', 'wpseo_save_all_descriptions' ); /* function wpseo_save_all() – Utility function to save values. */ /* function wpseo_upsert_new() – Insert a new value. */ /* function ajax_get_keyword_usage() – Retrieves the keyword for the keyword doubles. */ add_action( 'wp_ajax_get_focus_keyword_usage', 'ajax_get_keyword_usage' ); /* function ajax_get_term_keyword_usage() – Retrieves the keyword for the keyword doubles of the termpages. */ add_action( 'wp_ajax_get_term_keyword_usage', 'ajax_get_term_keyword_usage' ); /* function wpseo_register_ajax_integrations() – Registers hooks for all AJAX integrations. */ wpseo_register_ajax_integrations(); new WPSEO_Shortcode_Filter(); new WPSEO_Taxonomy_Columns();