mycred_parse_tags_general

Codex / mycred/log / Filters / mycred_parse_tags_general

Navigation:

  1. Description
  2. Used By
  3. Parameters
  4. Example

Description

This filter lets you add support for custom General template tags or override the default ones.

Used By

Parameters

  • content (string)
    The content containing template tags.
    Remember to always return the content once you are done!

Example

Add a new template tag %register_url% which will return a link to your websites default registration page.

add_filter( 'mycred_parse_tags_general', 'my_custom_general_template_tags' );
function my_custom_general_template_tags( $content )
{
	$content = str_replace( '%register_url%', get_bloginfo( 'url' ) . '/wp-login.php?action=register', $content );
	return $content;
}

Add this code to your themes functions.php file

Last edited June 26, 2016