Documentation

Didn't find anything? Ask your questions in the forum.
Documentation Filters helpful_tags

helpful_tags

This can be used to extend or change the tags in the Helpful Textareas. The keys are always the tags and the values are the values. Helpful replaces the keys with the values.

/**
 * Allows you to add your own tags. So you have the possibility to
 * use your tags in the admin area and display them in the text.
 *
 * @param array $tags default tags.
 * @return array
 */
function custom_function( $tags ) {
	$tags['{custom}'] = 'My own tag that is replaced in the text.';
	return $tag;
}

add_filter( 'helpful_tags', 'custom_function' );

Was this post helpful?