PUM_Site::actions()
Hooks Popup Maker actions, when present in the $_GET superglobal. Every popmake_action present in $_GET is called using WordPress’s do_action function. These functions are called on init.
Description Description
Source Source
File: classes/Site.php
public static function actions() { if ( empty( $_REQUEST['pum_action'] ) ) { return; } $valid_actions = apply_filters( 'pum_valid_request_actions', array( 'save_enabled_betas', 'download_batch_export', 'empty_error_log', ) ); $action = sanitize_text_field( $_REQUEST['pum_action'] ); if ( ! in_array( $action, $valid_actions ) || ! has_action( 'pum_' . $action ) ) { return; } do_action( 'pum_' . $action, $_REQUEST ); }
Expand full source code Collapse full source code View on Trac