芝麻web文件管理V1.00
编辑当前文件:/home/fambnfli/public_html/en/wp-content/plugins/coming-soon/coming-soon.php
SEEDPROD_VERSION, 'installed_date' => time(), 'installed_pro' => SEEDPROD_BUILD, ); add_option( 'seedprod_over_time', $data ); // Set a token add_option( 'seedprod_token', wp_generate_uuid4() ); // Welcome Page Flag set_transient( '_seedprod_welcome_screen_activation_redirect', true, 60 ); // set cron to fetch feed if ( ! wp_next_scheduled( 'seedprod_notifications' ) ) { if ( SEEDPROD_BUILD === 'pro' ) { wp_schedule_event( time() + 7200, 'daily', 'seedprod_notifications' ); } else { wp_schedule_event( time(), 'daily', 'seedprod_notifications' ); } } // Copy help docs on installation. $upload_dir = wp_upload_dir(); $path = trailingslashit( $upload_dir['basedir'] ) . 'seedprod-help-docs/'; // target directory. $cache_file = wp_normalize_path( trailingslashit( $path ) . 'articles.json' ); // Copy articles file. if ( true === seedprod_lite_set_up_upload_dir( $path, $cache_file ) ) { $initial_location = SEEDPROD_PLUGIN_PATH . 'resources/data-templates/articles.json'; copy( $initial_location, $cache_file ); } // Set cron to fetch help docs. if ( ! wp_next_scheduled( 'seedprod_lite_fetch_help_docs' ) ) { if ( SEEDPROD_BUILD === 'pro' ) { wp_schedule_event( time() + 7200, 'weekly', 'seedprod_lite_fetch_help_docs' ); } else { wp_schedule_event( time(), 'weekly', 'seedprod_lite_fetch_help_docs' ); } } // flush rewrite rules flush_rewrite_rules(); } register_activation_hook( __FILE__, 'seedprod_lite_activation' ); /** * Deactivate Flush Rules */ function seedprod_lite_deactivate() { wp_clear_scheduled_hook( 'seedprod_notifications' ); wp_clear_scheduled_hook( 'seedprod_fetch_help_docs' ); } register_deactivation_hook( __FILE__, 'seedprod_lite_deactivate' ); /** * Load Plugin */ require_once SEEDPROD_PLUGIN_PATH . 'app/bootstrap.php'; require_once SEEDPROD_PLUGIN_PATH . 'app/routes.php'; require_once SEEDPROD_PLUGIN_PATH . 'app/load_controller.php'; /** * Maybe Migrate */ add_action( 'upgrader_process_complete', 'seedprod_lite_check_for_free_version' ); add_action( 'init', 'seedprod_lite_check_for_free_version' );