You find the hooks of the premium version on this page.
Hook into an action with add_action(). Example:
function group_is_gone_message( $group_id ) {
echo "Group {$group_id} is gone!";
}
add_action( 'term_group_deleted', 'group_is_gone_message' );
Action name | Arguments of callback | Triggered when |
---|---|---|
term_group_saved | void | after information about (one or more) term groups was saved |
term_group_deleted | integer: group ID | after a group has been deleted |
groups_of_term_saved | integer: term ID integer or array of integers: tag group IDs | after a term’s assignment to groups was saved |
Hook into a filter with add_filter(). Example:
function wrap_as_gift( $html ) {
return "<div class='wrapping_paper'>" . $html . "</div>";
}
add_filter( 'tag_groups_view-partials-admin_notice', 'wrap_as_gift' );
Filter name | Arguments of callback | Return data type of callback | Filters what |
---|---|---|---|
tag_groups_view-{$view_slug} | string: content (HTML) | string | filters a string that contains the HTML of a view before output. Find possible view_slugs in the code (in the “views” folders, use the following folder name, a dash and the part before .view.php ; example for a filter name: tag_groups_view-partials-admin_notice ) |
tag_groups_cloud_tag_inner | string: content integer: term ID string: shortcode identifier | string | filters all tag names in tag clouds |
tag_groups_cloud_tag_outer | string: content (HTML) integer: term ID string: shortcode identifier | string | filters all tag names in tag clouds, including the wrapping <span> element |
tag_groups_cloud_html | string: content (HTML) string: shortcode identifier array: shortcode parameters | string | filters the complete HTML output of all tag clouds |
tag_groups_tag_title | string: title string: shortcode name string: tag description integer: tag count | string | filters the HTML title attribute of each tag that appears as tooltip on mouseover |