Skip to content

Custom Marker Taxonomy Arguments

Sven edited this page Feb 16, 2021 · 2 revisions

As of version 2.0.0 of the Mark Posts Plugin, we've implemented the filter mark_posts_taxonomy_args to overwrite the arguments (see $args) of the registered marker taxonomy.

Usage

As of version 2.0.0 of the plugin, the marker taxonomy is no longer public by default. To restore the behaviour of version 1.x of the plugin, set public to true:

add_filter( 'mark_posts_taxonomy_args', 'set_custom_marker_taxonomy_args' );
function set_custom_marker_taxonomy_args( $args ) {
  $args['public'] = true;  
  return $args;
}

The filter above will make the marker taxonomy visible (public) in the front-end of the theme. This is the default behaviour for version 1.x of the plugin.

Having questions? Feel free to raise an issue :)

Clone this wiki locally