redux_loaded ) { return; } $this->redux_loaded = true; add_action( 'admin_menu', array( $this, 'admin_menus' ) ); if ( isset( $_GET['page'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification if ( 'redux-' === substr( sanitize_text_field( wp_unslash( $_GET['page'] ) ), 0, 6 ) ) { // phpcs:ignore WordPress.Security.NonceVerification $version = explode( '.', Redux_Core::$version ); $this->display_version = $version[0] . '.' . $version[1]; add_filter( 'admin_footer_text', array( $this, 'change_wp_footer' ) ); add_action( 'admin_head', array( $this, 'admin_head' ) ); } } } /** * Do Redirect. */ public function do_redirect() { if ( ! defined( 'WP_CLI' ) ) { wp_safe_redirect( esc_url( admin_url( add_query_arg( array( 'page' => 'redux-framework' ), 'options-general.php' ) ) ) ); exit(); } } /** * Change Footer. */ public function change_wp_footer() { echo esc_html__( 'If you like', 'redux-framework' ) . ' Redux ' . esc_html__( 'please leave us a', 'redux-framework' ) . ' ★★★★★ ' . esc_html__( 'rating. A huge thank you in advance!', 'redux-framework' ); } /** * Register the Dashboard Pages which are later hidden but these pages * are used to render the What's Redux pages. * * @access public * @since 1.4 * @return void */ public function admin_menus() { $page = 'add_options_page'; // About Page. $page( esc_html__( 'What is Redux Framework?', 'redux-framework' ), esc_html__( 'Redux', 'redux-framework' ), $this->minimum_capability, 'redux-framework', array( $this, 'about_screen' ) ); } /** * Hide Individual Dashboard Pages * * @access public * @since 1.4 * @return void */ public function admin_head() { ?> href='assets/css/vendor/elusive-icons.css' type='text/css' media='all'/> href='inc/welcome/css/redux-welcome.min.css' type='text/css' media='all'/>
Docs Review Us Tweet 'redux-framework', 'redux-framework-plugin' => 'demo', 'nonce' => $nonce, ); if ( $options['demo'] ) { ?>