get_feed_urls( $url ); // Update the feed sources. $feed->set_feed_url( $all_feed_urls ); } /** * Get the feed URLs for various active AM Products. * * @since 1.0.0 * * @param string $url Planet Feed URL. * * @return array Array of Feed URLs. */ public function get_feed_urls( $url ) { // Initialize the feeds array. $feed_urls = array( 'https://www.wpbeginner.com/feed/', 'https://www.isitwp.com/feed/', $url, ); // Check if MonsterInsights is active. if ( function_exists( 'MonsterInsights' ) ) { $feed_urls[] = 'https://www.monsterinsights.com/feed/'; } // Check if WPForms is active. if ( class_exists( 'WPForms', false ) ) { $feed_urls[] = 'https://wpforms.com/feed/'; } // Check if OptinMonster is active. if ( class_exists( 'OMAPI', false ) ) { $feed_urls[] = 'https://optinmonster.com/feed/'; } // Return the feed URLs. return array_unique( $feed_urls ); } } // Create an instance. new AM_Dashboard_Widget_Extend_Feed(); }