fetch_arguments( 'complied-css', 'activation' ) ); // Save predefined options page data/values to database add_option( 'amo-team-showcase-options', $renderer->fetch_arguments( 'options-data', 'activation' ) ); // Flush rewrite rules because this plugin adds custom post type flush_rewrite_rules(); } // end plugin_activation public static function php_and_wp_version_check() { $php_version_warning = false; $error_title = __( 'The plugin cannot be activated, due to the following:', 'amo-team' ); $back_link = sprintf( '
← %s', admin_url(), _x( 'Back to plugins', 'a URL link', 'amo-team' ) ); //$delimiter = '

__( 'And also,', 'amo-team' )

'; # The plugin only works properly in PHP 5.3 or later. if ( PHP_VERSION_ID < 50300 ) { $php_version_warning = sprintf( '%s: %s', __( 'Warning', 'amo-team' ), sprintf( __( 'Amo Team Showcase plugin requires at least PHP version 5.3. You are running version %s. Please contact your web hosting to upgrade/change PHP version.', 'amo-team' ), PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION ) ); } // IF | PHP version // if PHP warning if ( $php_version_warning ) { wp_die( $php_version_warning . $back_link, $error_title ); } } // php_version_check } // CLASS