includes/class-freemius.php
function is_ajax_action( $actions ) {
            // Verify it's an ajax call.
            if ( ! self::is_ajax() ) {
                return false;
            }

            // Verify the call is relevant for the plugin.
            if ( $this->_module_id != fs_request_get( 'module_id' ) ) {
                return false;
            }

            // Verify it's one of the specified actions.
            if ( is_string( $actions ) ) {
                $actions = explode( ',', $actions );
            }

            if ( is_array( $actions ) && 0 < count( $actions ) ) {
                $ajax_action = fs_request_get( 'action' );

                foreach ( $actions as $action ) {
                    if ( $ajax_action === $this->get_action_tag( $action ) ) {
                        return true;
                    }
                }
            }

            return false;
        }
function is_ajax_action( $actions ) {
            // Verify it's an ajax call.
            if ( ! self::is_ajax() ) {
                return false;
            }

            // Verify the call is relevant for the plugin.
            if ( $this->_module_id != fs_request_get( 'module_id' ) ) {
                return false;
            }

            // Verify it's one of the specified actions.
            if ( is_string( $actions ) ) {
                $actions = explode( ',', $actions );
            }

            if ( is_array( $actions ) && 0 < count( $actions ) ) {
                $ajax_action = fs_request_get( 'action' );

                foreach ( $actions as $action ) {
                    if ( $ajax_action === $this->get_action_tag( $action ) ) {
                        return true;
                    }
                }
            }

            return false;
        }
function is_ajax_action ( $ actions ) { // Verify it's an ajax call.
 if ( ! self :: is_ajax ( ) ) { return false ; } // Verify the call is relevant for the plugin.
 if ( $ this -> _module_id != fs_request_get ( 'module_id' ) ) { return false ; } // Verify it's one of the specified actions.
 if ( is_string ( $ actions ) ) { $ actions = explode ( ',' , $ actions ) ; } if ( is_array ( $ actions ) && 0 < count ( $ actions ) ) { $ ajax_action = fs_request_get ( 'action' ) ; foreach ( $ actions as $ action ) { if ( $ ajax_action === $ this -> get_action_tag ( $ action ) ) { return true ; } } } return false ; }
Check if it's an AJAX call targeted for the current module.

@author Vova Feldman (@svovaf)
@since  1.2.0

@param array|string $actions Collection of AJAX actions.

@return bool
Check if it s an AJAX call targeted for the current module .