EO_Email_Template_Tag_Registry
Pro
Class used to registeer and store e-mail tags.
To register an e-mail tag:
EO_Email_Template_Tag_Registry::register( 'mytag', 'mytag_callack' );
function mytag_callack( $tag, $atts, $context ){
}
Your callbacks must return a value, not print it
To de-register an existing tag you can either register an alternative callback or
EO_Email_Template_Tag_Registry::deregister( 'mytag' );
Methods
public |
#
register( $tag, $callback )
Register a callback for a tag.
Your callback is responsible for replacing the tag with an appropriate value. The
callback must not print, but return a value.
|
public |
#
get_tags( )
|
public |
#
deregister( $tag )
|
Properties
Hooks