fs_request_is_action

The NextGEN Gallery fs request is action function.

Description

fs_request_is_action( $action, (string) $action_key = 'action' ); 

Parameters (2)

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

Usage

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

Defined (1)

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

/freemius/includes/fs-core-functions.php  
  1. function fs_request_is_action( $action, $action_key = 'action' ) { 
  2. return ( strtolower( $action ) === fs_get_action( $action_key ) );