Filter: um_ultimatemember_shortcode_disable_singleton

apply_filters( 'um_ultimatemember_shortcode_disable_singleton', $disable, $args ) → {bool}

Filters variable for enable singleton shortcode loading on the same page. Note: Set it to false if you don't need to render the same form twice or more on the same page.

Parameters:
Name Type Description
$disable bool

Disabled singleton. By default, it's true.

$args array

Shortcode arguments.

Since:
  • 2.6.9 $disable argument set to `true` by default
Source:
Returns:

Disabled singleton or not.

Type
bool
Example

Turn off ability to use ultimatemember shortcode twice.

add_filter( 'um_ultimatemember_shortcode_disable_singleton', '__return_false' );