• Resolved GGcc2

    (@ggcc2)


    Hello
    I would like to exlude a post when i import the posts with WP All import.
    I don’t find the slud of “search exclude” ? Is it possible ?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor pronskiy

    (@pronskiy)

    Hello @ggcc2,

    Not out of the box. Off the top of my head, you can try adding the following code to your functions.php:

    
    function my_pmxi_saved_post( $post_id, $xml_node, $is_update ) {
    	do_action( 'searchexclude_hide_from_search', array($post_id), true );
    }
    add_action( 'pmxi_saved_post', 'my_saved_post', 10, 3 );
    

    Not tested, though. I just made this snippet based on the WP All import documentation https://www.wpallimport.com/documentation/advanced/action-reference/

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude a post with ALL import’ is closed to new replies.