add_action( 'admin_init', 'murjanpalace_remove_menu_pages' ); function murjanpalace_remove_menu_pages(){ $remove_page_array = array( 'the7-dashboard', 'the7-demo-content', 'the7-plugins', 'the7-status', 'the7-icons', 'edit.php?post_type=dt_portfolio', 'edit.php?post_type=dt_logos', 'edit.php?post_type=dt_testimonials', 'edit.php?post_type=dt_team', 'edit.php?post_type=dt_benefits', 'edit.php?post_type=dt_slideshow', 'admin.php?page=of-skins-menu', ); foreach( $remove_page_array as $page ){ remove_menu_page( $page ); } } //== rename menu title/label ==// add_action( 'admin_menu', 'rename_header_to_logo_cb',999 ); function rename_header_to_logo_cb() { global $menu; global $submenu; /* echo '
';
    print_r( $menu );
    echo '
';*/ foreach( $menu as $key => $get_mn ){ if( $get_mn[0] == "The7 Slider Revolution" ){ $menu[$key][0] = "Slider Revolution"; $menu[$key][3] = "Slider Revolution"; } if( $get_mn[0] == "The7 Ultimate" ){ $menu[$key][0] = "Ultimate"; $menu[$key][3] = "Ultimate"; } } //$menu[100][0] = 'Slider Revolution'; //$menu[100][3] = 'Slider Revolution'; //$menu[200][0] = 'Ultimate'; //$menu[200][3] = 'Ultimate'; $submenu['revslider'][0][0] = 'Slider Revolution'; remove_menu_page( 'of-options-wizard' ); } //== stop notice and core update ==// add_action('after_setup_theme','remove_core_updatess'); function remove_core_updatess() { remove_action( 'admin_notices', '_admin_notices', 99 ); // Remove Notice remove_action( 'init', 'wp_version_check' ); // Version Check add_filter('pre_option_update_core','__return_null'); add_filter('pre_site_transient_update_core','__return_null'); remove_action('load-update-core.php','wp_update_plugins'); add_filter('pre_site_transient_update_plugins','__return_null'); } function remove_core_updates(){ global $wp_version; return (object)array('last_checked'=> time(),'version_checked'=> $wp_version,); }add_filter('pre_site_transient_update_core','remove_core_updates'); // WP add_filter('pre_site_transient_update_plugins','remove_core_updates'); // Plugin add_filter('pre_site_transient_update_themes','remove_core_updates'); // Themeadd_action('admin_print_scripts', 'ure_remove_admin_notices'); // Remove Notice function ure_remove_admin_notices() { global $wp_filter; if (is_user_admin()) { if (isset($wp_filter['user_admin_notices'])) { unset($wp_filter['user_admin_notices']); } } elseif (isset($wp_filter['admin_notices'])) { unset($wp_filter['admin_notices']); } if (isset($wp_filter['all_admin_notices'])) { unset($wp_filter['all_admin_notices']); } } // add_filter('presscore_options_menu_config','murjanpalace_presscore_options_menu_config_cb',10,1); function murjanpalace_presscore_options_menu_config_cb( $menu_config ){ return array(); } function files_enqueue() { wp_enqueue_style( 'datepicker-css', 'https://cdnjs.cloudflare.com/ajax/libs/datepicker/0.6.5/datepicker.min.css'); wp_enqueue_script( 'datepicker-js', 'https://cdnjs.cloudflare.com/ajax/libs/datepicker/0.6.5/datepicker.min.js'); } add_action( 'wp_enqueue_scripts', 'files_enqueue' ); //== remove gutenberg style ==// // add_action( 'wp_print_styles', 'wp_dequeue_gutenberg_styles', 100 ); function wp_dequeue_gutenberg_styles(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); } include('shortcode.php'); Conference Room - Al Murjan Palace Hotel Jounieh
Go to Top