WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

wp_ajax_(action) хук-событие . WP 2.1.0

Fires authenticated Ajax actions for logged-in users.

The dynamic portion of the hook name, $action, refers to the name of the Ajax action callback being fired.

Использование

add_action( 'wp_ajax_(action)', 'action_function_name_9105' );
function action_function_name_9105(){
	// action...
}

Где вызывается хук

В файле: /wp-admin/admin-ajax.php
wp_ajax_(action)
wp-admin/admin-ajax.php 173
do_action( "wp_ajax_{$action}" );

Где используется хук (в ядре WP)

wp-admin/admin-ajax.php 148
add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 );
wp-admin/admin-ajax.php 155
add_action( 'wp_ajax_nopriv_heartbeat', 'wp_ajax_nopriv_heartbeat', 1 );
wp-admin/admin-ajax.php 152
add_action( 'wp_ajax_' . $_POST['action'], 'wp_ajax_' . str_replace( '-', '_', $_POST['action'] ), 1 );
wp-admin/custom-background.php 53
add_action( 'wp_ajax_custom-background-add', array( $this, 'ajax_background_add' ) );
wp-admin/custom-background.php 56
add_action( 'wp_ajax_set-background-image', array( $this, 'wp_set_background_image' ) );
wp-admin/custom-header.php 62
add_action( 'wp_ajax_custom-header-crop', array( $this, 'ajax_header_crop' ) );
wp-admin/custom-header.php 63
add_action( 'wp_ajax_custom-header-add', array( $this, 'ajax_header_add' ) );
wp-admin/custom-header.php 64
add_action( 'wp_ajax_custom-header-remove', array( $this, 'ajax_header_remove' ) );
wp-includes/class-wp-customize-manager.php 384
add_action( 'wp_ajax_customize_override_changeset_lock', array( $this, 'handle_override_changeset_lock_request' ) );
wp-includes/class-wp-customize-manager.php 385
add_action( 'wp_ajax_customize_dismiss_autosave_or_lock', array( $this, 'handle_dismiss_autosave_or_lock_request' ) );
wp-includes/class-wp-customize-manager.php 379
add_action( 'wp_ajax_customize_trash', array( $this, 'handle_changeset_trash_request' ) );
wp-includes/class-wp-customize-manager.php 381
add_action( 'wp_ajax_customize_load_themes', array( $this, 'handle_load_themes_request' ) );
wp-includes/class-wp-customize-manager.php 380
add_action( 'wp_ajax_customize_refresh_nonces', array( $this, 'refresh_nonces' ) );
wp-includes/class-wp-customize-manager.php 378
add_action( 'wp_ajax_customize_save', array( $this, 'save' ) );
wp-includes/class-wp-customize-nav-menus.php 60
add_action( 'wp_ajax_load-available-menu-items-customizer', array( $this, 'ajax_load_available_items' ) );
wp-includes/class-wp-customize-nav-menus.php 61
add_action( 'wp_ajax_search-available-menu-items-customizer', array( $this, 'ajax_search_available_items' ) );
wp-includes/class-wp-customize-nav-menus.php 62
add_action( 'wp_ajax_customize-nav-menus-insert-auto-draft', array( $this, 'ajax_insert_auto_draft_post' ) );
wp-includes/class-wp-taxonomy.php 439
add_filter( 'wp_ajax_add-' . $this->name, '_wp_ajax_add_hierarchical_term' );
wp-includes/class-wp-taxonomy.php 448
remove_filter( 'wp_ajax_add-' . $this->name, '_wp_ajax_add_hierarchical_term' );