um_pre_{$mode}_shortcode

Hook type

Action

Description

Action pre-load form shortcode

Parameters

$args

(array) Form shortcode pre-loading

Usage

add_action( 'um_pre_{$mode}_shortcode', 'function_name', 10, 1 );

Examples

<?php
add_action( 'um_pre_{$mode}_shortcode', 'my_pre_shortcode', 10, 1 );
function my_pre_shortcode( $args ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_pre_{$mode}_shortcode is located in includes/core/class-shortcodes.php::line 507