gmb_process_actions

Processes all GMB actions sent via POST and GET by looking for the 'gmb-action' request and running do_action() to call the function.

Description

gmb_process_actions(); 

Usage

  1. if ( !function_exists( 'gmb_process_actions' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'maps-builder/includes/admin/admin-actions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gmb_process_actions(); 
  7.  

Defined (2)

The function is defined in the following location(s).

/includes/admin/admin-actions.php  
  1. function gmb_process_actions() { 
  2. if ( isset( $_POST['gmb_action'] ) ) { 
  3. do_action( 'gmb_' . $_POST['gmb_action'], $_POST ); 
  4.  
  5. if ( isset( $_GET['gmb_action'] ) ) { 
  6. do_action( 'gmb_' . $_GET['gmb_action'], $_GET ); 
/vendor/wordimpress/maps-builder-core/includes/admin/admin-actions.php  
  1. function gmb_process_actions() { 
  2. if ( isset( $_POST['gmb_action'] ) ) { 
  3. do_action( 'gmb_' . $_POST['gmb_action'], $_POST ); 
  4.  
  5. if ( isset( $_GET['gmb_action'] ) ) { 
  6. do_action( 'gmb_' . $_GET['gmb_action'], $_GET );