'page', 'posts_per_page' => 1, 'title' => $beauty_spa_elementor_pagename ); $beauty_spa_elementor_query = new WP_Query( $beauty_spa_elementor_args ); $beauty_spa_elementor_page_id = '1'; if (isset($beauty_spa_elementor_query->post->ID)) { $beauty_spa_elementor_page_id = $beauty_spa_elementor_query->post->ID; } return $beauty_spa_elementor_page_id; } //about theme info add_action( 'admin_menu', 'beauty_spa_elementor_gettingstarted' ); function beauty_spa_elementor_gettingstarted() { add_theme_page( esc_html__('Beauty Spa Elementor', 'beauty-spa-elementor'), esc_html__('Beauty Spa Elementor', 'beauty-spa-elementor'), 'edit_theme_options', 'beauty_spa_elementor_about', 'beauty_spa_elementor_mostrar_guide'); } // Add a Custom CSS file to WP Admin Area function beauty_spa_elementor_admin_theme_style() { wp_enqueue_style('beauty-spa-elementor-custom-admin-style', esc_url(get_template_directory_uri()) . '/includes/getstart/getstart.css'); wp_enqueue_script('beauty-spa-elementor-tabs', esc_url(get_template_directory_uri()) . '/includes/getstart/js/tab.js'); wp_enqueue_style( 'font-awesome-css', get_template_directory_uri().'/assets/css/fontawesome-all.css' ); // Admin notice code START wp_register_script('beauty-spa-elementor-notice', esc_url(get_template_directory_uri()) . '/includes/getstart/js/notice.js', array('jquery'), time(), true); wp_enqueue_script('beauty-spa-elementor-notice'); // Admin notice code END } add_action('admin_enqueue_scripts', 'beauty_spa_elementor_admin_theme_style'); // Changelog if ( ! defined( 'BEAUTY_SPA_ELEMENTOR_CHANGELOG_URL' ) ) { define( 'BEAUTY_SPA_ELEMENTOR_CHANGELOG_URL', get_template_directory() . '/readme.txt' ); } function beauty_spa_elementor_changelog_screen() { global $wp_filesystem; $beauty_spa_elementor_changelog_file = apply_filters( 'beauty_spa_elementor_changelog_file', BEAUTY_SPA_ELEMENTOR_CHANGELOG_URL ); if ( $beauty_spa_elementor_changelog_file && is_readable( $beauty_spa_elementor_changelog_file ) ) { WP_Filesystem(); $beauty_spa_elementor_changelog = $wp_filesystem->get_contents( $beauty_spa_elementor_changelog_file ); $beauty_spa_elementor_changelog_list = beauty_spa_elementor_parse_changelog( $beauty_spa_elementor_changelog ); echo '