wp_ajax_ . $_REQUEST[action]

  • do_action( 'wp_ajax_' . $_REQUEST['action'] )

    Source Reference:

    • Component: BuddyPress:: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 909
      		return load_textdomain( 'buddypress', $mofile_local );
      	else
      		return false;
      }
      add_action ( 'bp_init', 'bp_core_load_buddypress_textdomain', 2 );
      
      function bp_core_add_ajax_hook() {
      	// Theme only, we already have the wp_ajax_ hook firing in wp-admin
      	if ( !defined( 'WP_ADMIN' ) && isset( $_REQUEST['action'] ) )
      		do_action( 'wp_ajax_' . $_REQUEST['action'] );
      }
      add_action( 'bp_init', 'bp_core_add_ajax_hook' );
      
      /**
       * Initializes {@link BP_Embed} after everything is loaded.
       *
       * @global object $bp BuddyPress global settings
       * @package BuddyPress Core
       * @since 1.5
       */
      

Comments are closed.