• Hi,

    I’ve noticed that when I copy or duplicate a post or a product (in Woocommerce) the task to send an email to the lists is not triggered. Only when we create a post/product from scratch is the task scheduled to send emails.
    Would there be a workaround for this please ?
    The plugin I use to duplicate is: “Duplicate page” by mndpsingh287.
    Thanks
    Patrick

    • This topic was modified 1 week, 6 days ago by antoine69.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @antoine69,

    Thank you for reaching out to us!

    After reviewing your mail i suggest you to use this code snippet to send notification for duplicate post

    //<?php Uncomment this line if this line is already not present in the functions.php file.

    add_filter( 'get_post_metadata', 'es_cc_ovveride_is_post_notified', 10, 5 );

    function es_cc_ovveride_is_post_notified( $value, $object_id, $meta_key, $single, $meta_type ) {

    if ( 'ig_es_is_post_notified' === $meta_key ) {

    return false;

    }

    return $value;

    }

    above code snippet you can either add in the current child theme’s?functions.php?or can use Code snippets plugin.

    Let us know how things are progressing on your side!

    Thread Starter antoine69

    (@antoine69)

    Hi,

    Thank you very much, it worls perfectly !

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.