| 1 |
<?php |
| 2 |
/** |
| 3 |
* GamiPress 1.8.6 compatibility functions |
| 4 |
* |
| 5 |
* @package GamiPress\1.8.6 |
| 6 |
* @author GamiPress <[email protected]>, Ruben Garcia <[email protected]> |
| 7 |
* @since 1.8.6 |
| 8 |
*/ |
| 9 |
// Exit if accessed directly |
| 10 |
if( !defined( 'ABSPATH' ) ) exit; |
| 11 |
|
| 12 |
/** |
| 13 |
* Get an array of email pattern tags |
| 14 |
* |
| 15 |
* @deprecated Use gamipress_get_pattern_tags() instead |
| 16 |
* |
| 17 |
* @since 1.3.0 |
| 18 |
* |
| 19 |
* @return array The registered email pattern tags |
| 20 |
*/ |
| 21 |
function gamipress_get_email_pattern_tags() { |
| 22 |
|
| 23 |
$pattern_tags = gamipress_get_pattern_tags(); |
| 24 |
|
| 25 |
return apply_filters( 'gamipress_email_pattern_tags', $pattern_tags ); |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* Get a string with the desired email pattern tags html markup |
| 31 |
* |
| 32 |
* @deprecated Use gamipress_get_pattern_tags_html() instead |
| 33 |
* |
| 34 |
* @since 1.3.0 |
| 35 |
* |
| 36 |
* @param string $email |
| 37 |
* |
| 38 |
* @return string Log pattern tags html markup |
| 39 |
*/ |
| 40 |
function gamipress_get_email_pattern_tags_html( $email = '' ) { |
| 41 |
|
| 42 |
return gamipress_get_pattern_tags_html( $email ); |
| 43 |
|
| 44 |
} |