• Resolved davedee

    (@davedee)


    Is it possible, please, to have an option not to include the content of the post or comment.
    I want to simply inform users that a new post or comment has been added to the website – to encourage them to go to the site to see the message.

    Until such an option exists, can you please tell me how I could modify the code to include a text message such as “A new post or comment has been added to the website” in place of the post or comment text?

    https://www.ads-software.com/plugins/inform-about-content/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Rene Reimann

    (@derpixler)

    Hi Davedee,

    you can use the filter iac_post_message, here is a example.

    add_filter( 'iac_post_message', 'my_custom_iac_message', 9, 3 );
    
    function my_custom_iac_message( $message, $this->options, $post_id ){
    
    	$message = 'A new post or comment has been added to the website';
    
    	return $message;
    
    }

    Please give me a feedback if it works ??

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Inform about Content] Option to remove content’ is closed to new replies.