'error', 'dismissible' => true, ) ); } /** * Set some options when first activating the plugin via Jetpack. * * @since 8.9.0 * * @param string $plugin_file Plugin file. * @param string $source Where did the plugin installation originate. */ function configure_plugin( $plugin_file, $source ) { if ( PLUGIN_FILE !== $plugin_file ) { return; } $plugin_info = array( 'plugin' => 'jetpack', 'version' => JETPACK__VERSION, 'time' => time(), 'source' => esc_attr( $source ), ); update_option( 'ce4wp_referred_by', $plugin_info ); }