wp-admin/admin-ajax.php


Lines:

1 to 100 of 216
<?php

/**
 * WordPress Ajax Process Execution
 *
 * @package WordPress
 * @subpackage Administration
 *
 * @link https://codex.wordpress.org/AJAX_in_Plugins
 */


/**
 * Executing Ajax process.
 *
 * @since 2.1.0
 */
define( 'DOING_AJAX', true );
if ( ! defined( 'WP_ADMIN' ) ) {
  define( 'WP_ADMIN', true );
}


/** Load WordPress Bootstrap */
require_once dirname( __DIR__ ) . '/wp-load.php';


/** Allow for cross-domain requests (from the front end). */
send_origin_headers();

header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
header( 'X-Robots-Tag: noindex' );

// Require an action parameter.
if ( empty( $_REQUEST['action'] ) ) {
  wp_die( '0', 400 );
}


/** Load WordPress Administration APIs */
require_once ABSPATH . 'wp-admin/includes/admin.php';


/** Load Ajax Handlers for WordPress Core */
require_once ABSPATH . 'wp-admin/includes/ajax-actions.php';

send_nosniff_header();
nocache_headers();


/** This action is documented in wp-admin/admin.php */
do_action( 'admin_init' );

$core_actions_get = array(
  'fetch-list',
  'ajax-tag-search',
  'wp-compression-test',
  'imgedit-preview',
  'oembed-cache',
  'autocomplete-user',
  'dashboard-widgets',
  'logged-in',
  'rest-nonce',
);

$core_actions_post = array(
  'oembed-cache',
  'image-editor',
  'delete-comment',
  'delete-tag',
  'delete-link',
  'delete-meta',
  'delete-post',
  'trash-post',
  'untrash-post',
  'delete-page',
  'dim-comment',
  'add-link-category',
  'add-tag',
  'get-tagcloud',
  'get-comments',
  'replyto-comment',
  'edit-comment',
  'add-menu-item',
  'add-meta',
  'add-user',
  'closed-postboxes',
  'hidden-columns',
  'update-welcome-panel',
  'menu-get-metabox',
  'wp-link-ajax',
  'menu-locations-save',
  'menu-quick-search',
  'meta-box-order',
  'get-permalink',
  'sample-permalink',
  'inline-save',
  'inline-save-tax',
  'find_posts',

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      API Letters: ,,