Puedo estar equivocado; no creo que puedas hacerlo solo con la configuración.
¿Qué tal usar Exclude Posts By Tag? Podrías aplicar automáticamente (con un plugin) una etiqueta específica a estos tipos de publicaciones personalizadas. ¿Te funcionaría?
También puedes filtrar con código con wpdc_publish_after_save.
return null;
}
$post_should_be_auto_published = $this->auto_publish( $post_id );
$post_already_published = $this->dc_get_post_meta( $post_id, 'discourse_post_id', true );
$post_marked_to_be_published = $this->dc_get_post_meta( $post_id, 'publish_to_discourse', true );
$publish_new_post_to_discourse = ( $post_marked_to_be_published || $post_should_be_auto_published ) && ! $post_already_published;
$topic_should_be_updated = $this->dc_get_post_meta( $post_id, 'update_discourse_topic', true );
$force_publish_post = $this->force_publish_post( $post );
$publish_to_discourse = $publish_new_post_to_discourse || $topic_should_be_updated || $force_publish_post;
$publish_to_discourse = apply_filters( 'wpdc_publish_after_save', $publish_to_discourse, $post_id, $post );
if ( $publish_to_discourse ) {
// Clear existing publishing errors.
delete_post_meta( $post_id, 'wpdc_publishing_error' );
$this->sync_to_discourse( $post_id, $post->post_title, $post->post_content );
}
return null;
}
/**
4 Me gusta