Hooks::maybe_trigger_process_action()
Depending on which page, tab and if an action is present we trigger the processing.
Source
File: src/Tickets/Commerce/Hooks.php
public function maybe_trigger_process_action() {
$page = tribe_get_request_var( 'page' );
if ( \Tribe__Settings::instance()->adminSlug !== $page ) {
return;
}
$tab = tribe_get_request_var( 'tab' );
if ( 'payments' !== $tab ) {
return;
}
$action = (string) tribe_get_request_var( 'tc-action' );
if ( empty( $action ) ) {
return;
}
/**
* Process Tickets Commerce actions when in the Payments Tab.
*
* @since 5.1.9
*
* @param string $action Which action we are processing.
*/
do_action( 'tec_tickets_commerce_admin_process_action', $action );
/**
* Process Tickets Commerce actions when in the Payments Tab.
*
* @since 5.1.9
*/
do_action( "tec_tickets_commerce_admin_process_action:{$action}" );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |