Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes. I am new to using this plugin, but if you refer to supporting notification of published posts, I believe the plugin by default supports post types ‘post’ and ‘page’. It uses a filter, however, ‘ckpn_post_publish_types’, that allows one to set the post_types which are supported. For example, you might add this to your functions.php file:

    add_filter( 'ckpn_post_publish_types', 'set_my_pushover_cpts', 10, 1 );
    function set_my_pushover_cpts($allowed) {
    	$allowed = array(
    		'news',
    		'jobs',
    	);
    	return $allowed;
    }

    In this case, change “news” and “jobs” to whatever custom post types you want supported. This worked for me.

    Plugin Author Chris Klosowski

    (@cklosows)

    Hey @transmediac,

    Sorry for the missed tickets, and @stevendaily is almost spot on…expect you’d need to add your custom post types to the array, not replace ‘post’ and ‘page’.

    You can do this with:

    add_filter(  'ckpn_post_publish_types', 'ck_my_pushover_cpts', 10, 1 );
    function ck_my_pushover_cpts( $allowed ) {
    	$allowed[] = 'news';
    	$allowed[] = 'jobs';
    
    	return $allowed;
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Post Type’ is closed to new replies.