• Resolved etling

    (@etling)


    It would be nice if there was a way to specify certain taxonomies to ignore when log records are created. My specific use case is, we use the Yoast SEO plugin, and when a post is created or updated, row after row appears in Simple History like:

    Added term “some term” in taxonomy “yst_prominent_words”

    If there was a way to ignore terms being added to that taxonomy, it would cut down on the noise in our Simple History log.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I found the get_skip_posttypes() fonction in “SimplePostLogger.php” that permit me to exclude some logs from another plugin.

    Plugin Author P?r Thernstr?m

    (@eskapism)

    @etling There is filter called simple_history/categories_logger/skip_taxonomies that you can use to modify what taxonomies should be logged.

    I don’t have an exact example but this is how the line in the code looks:

    
    $taxonomies_to_skip = apply_filters('simple_history/categories_logger/skip_taxonomies', $taxonomies_to_skip);
    

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow excluding certain taxonomies’ is closed to new replies.