• Resolved jibbius

    (@jibbius)


    I was encountering plugin conflicts related to wp-cron.

    Specifically, wp-help’s api_slurp() would encounter issues with other plugins.
    The reason for these issues is that posts were being inserted/updated, prior to registering the wp-help post_type.

    I think the following needs to be added:
    plugin.php

    	public function api_slurp() {
    		if ( !$this->get_option( 'slurp_url' ) )
    			return;
    		$result = wp_remote_get( add_query_arg( 'time', time(), $this->get_option( 'slurp_url' ) ) );
    		if ( $result['response']['code'] == 200 ) {
    
    			// ADDED THIS LINE
    			$this->register_post_type();
    			// END OF CODE
    
    			$topics = new WP_Query( array( 'post_type' => self::POST_TYPE, 'posts_per_page' => -1, 'post_status' => 'publish' ) );
    
Viewing 1 replies (of 1 total)
  • Thread Starter jibbius

    (@jibbius)

    (Marking as resolved, but should possibly be considered for inclusion in next plugin update).

Viewing 1 replies (of 1 total)
  • The topic ‘(Resolved) How to fix wp-cron issues’ is closed to new replies.