WordPress.org

Ready to get started?Download WordPress

Forums

ThreeWP Broadcast
Required List Bug (i think) (1 post)

  1. nfranklin
    Member
    Posted 1 year ago #

    Hi,

    I have the required list active in my configuration. I had an issue where post types not in my boradcast post types list were being broadcasted and I think this is due to the required list.

    Inside the save_post function I added the following code to make sure we are only dealing with the post types in my broadcast list:

    / SHOULD WE BE TRYING TO BROADCAST IF THE POST TYPE IS NOT IN OUR LIST
    		$continue_on = false;
    		$allowed_posts = $this->get_site_option( 'post_types' );
    		if(empty($allowed_posts) || !is_array($allowed_posts)) return;
    
    		foreach($allowed_posts as $pt => $pt_ignore) {
    			if($pt_ignore=="0" && $pt == $post["post_type"]) {
    				$continue_on = true;
    				break;
    			}
    		}
    		if(!$continue_on) {
    			return;
    		}

    http://wordpress.org/extend/plugins/threewp-broadcast/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.