fs_get_action

The NextGEN Gallery fs get action function.

Description

fs_get_action( (string) $action_key = 'action' ); 

Parameters (1)

0. $action_key — Optional. (string) => 'action'
The action key.

Usage

  1. if ( !function_exists( 'fs_get_action' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextgen-gallery/freemius/includes/fs-core-functions.php'; 
  3.  
  4. // The action key. 
  5. $action_key = 'action'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = fs_get_action($action_key); 
  9.  

Defined (1)

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

/freemius/includes/fs-core-functions.php  
  1. function fs_get_action( $action_key = 'action' ) { 
  2. if ( ! empty( $_REQUEST[ $action_key ] ) ) { 
  3. return strtolower( $_REQUEST[ $action_key ] ); 
  4.  
  5. if ( 'action' == $action_key ) { 
  6. $action_key = 'fs_action'; 
  7.  
  8. if ( ! empty( $_REQUEST[ $action_key ] ) ) { 
  9. return strtolower( $_REQUEST[ $action_key ] ); 
  10.  
  11. return false;