Support » Plugin: Akismet Anti-spam: Spam Protection » How do you use the new filters added to 3.0.3

  • Resolved Zee

    (@laserjobs)


    How do you set these new filters?
    Added a filter to disable logging of Akismet debugging information.
    Added a filter for the maximum comment age when deleting old spam comments.
    Added a filter for the number per batch when deleting old spam comments.

    https://wordpress.org/plugins/akismet/

Viewing 1 replies (of 1 total)
  • Plugin Author Christopher Finke

    (@cfinke)

    Added a filter to disable logging of Akismet debugging information.

    add_filter( 'akismet_debug_log', '__return_false' );

    Added a filter for the maximum comment age when deleting old spam comments.

    add_filter( 'akismet_delete_comment_interval', [function that returns the number of days you want to wait before deleting] );

    Added a filter for the number per batch when deleting old spam comments.

    add_filter( 'akismet_delete_comment_limit', [function that returns the number of comments that should be deleted at a time] );

Viewing 1 replies (of 1 total)
  • The topic ‘How do you use the new filters added to 3.0.3’ is closed to new replies.