um_template_tags_patterns_hook

Hook type

Filter

Description

Extend UM placeholders

Parameters

$placeholders

(array) UM Placeholders

Usage

add_filter( 'um_template_tags_patterns_hook', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_template_tags_patterns_hook', 'my_template_tags_patterns', 10, 1 );
function my_template_tags_patterns( $placeholders ) {
    // your code here
$placeholders[] = '{my_custom_placeholder}';
return $placeholders;
}
?>

Change Log

Since: 2.0

Source

um_template_tags_patterns_hook is located in includes/um-short-functions.php::line 158