• Resolved PS85

    (@tmgmw)


    Hi, Lovely plugin.

    I have a small issue, I send a notification to subscribers when there’s a new post create.

    Lo and behold because the when a new post is created, a log is also created and its being sent out as an alert as well.

    How can i disable the creation of logs.

    https://ww.wp.xz.cn/plugins/badgeos/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter PS85

    (@tmgmw)

    excuse the heading typo

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    hadn’t noticed the typo, but now I do 😉

    What has me curious is why the internal log post type is creating notifications.

    Haven’t tested this, but these are the actions that I believe we’re using for this.

    add_filter( 'badgeos_post_log_entry', 'badgeos_log_entry', 10, 2 );
    
    add_action( 'badgeos_create_log_entry', 'badgeos_log_achievement_id', 10, 2 );

    Two different ones. If I recall right, you need to change the add_action to remove_action and have matching hook, callback, and priority. the two 2’s in there wouldn’t be needed for this modification.

    Do so from your current theme and not via our plugin itself.

    Thread Starter PS85

    (@tmgmw)

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable Log createion’ is closed to new replies.