*/ class Feedzy_Rss_Feeds_Activator { /** * Plugin activation action. * * Triggers the plugin activation action on plugin activate. * * @since 3.0.0 * @access public */ public static function activate() { $options = get_option( Feedzy_Rss_Feeds::get_plugin_name(), array() ); $old_logger_option = get_option( 'feedzy_logger_flag', 'no' ); if ( $old_logger_option == 'yes' ) { update_option( 'feedzy_rss_feeds_logger_flag', 'yes' ); update_option( 'feedzy_logger_flag', 'no' ); } if ( ! isset( $options['is_new'] ) ) { update_option( Feedzy_Rss_Feeds::get_plugin_name(), array( 'is_new' => 'yes', ) ); } } }