'page', 'posts_per_page' => 1, 'title' => $cafe_elementor_pagename ); $cafe_elementor_query = new WP_Query( $cafe_elementor_args ); $cafe_elementor_page_id = '1'; if (isset($cafe_elementor_query->post->ID)) { $cafe_elementor_page_id = $cafe_elementor_query->post->ID; } return $cafe_elementor_page_id; } //about theme info add_action( 'admin_menu', 'cafe_elementor_gettingstarted' ); function cafe_elementor_gettingstarted() { add_theme_page( esc_html__('Cafe Elementor', 'cafe-elementor'), esc_html__('Cafe Elementor', 'cafe-elementor'), 'edit_theme_options', 'cafe_elementor_about', 'cafe_elementor_mostrar_guide'); } // Add a Custom CSS file to WP Admin Area function cafe_elementor_admin_theme_style() { wp_enqueue_style('cafe-elementor-custom-admin-style', esc_url(get_template_directory_uri()) . '/includes/getstart/getstart.css'); wp_enqueue_script('cafe-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('cafe-elementor-notice', esc_url(get_template_directory_uri()) . '/includes/getstart/js/notice.js', array('jquery'), time(), true); wp_enqueue_script('cafe-elementor-notice'); // Admin notice code END } add_action('admin_enqueue_scripts', 'cafe_elementor_admin_theme_style'); // Changelog if ( ! defined( 'CAFE_ELEMENTOR_CHANGELOG_URL' ) ) { define( 'CAFE_ELEMENTOR_CHANGELOG_URL', get_template_directory() . '/readme.txt' ); } function cafe_elementor_changelog_screen() { global $wp_filesystem; $cafe_elementor_changelog_file = apply_filters( 'cafe_elementor_changelog_file', CAFE_ELEMENTOR_CHANGELOG_URL ); if ( $cafe_elementor_changelog_file && is_readable( $cafe_elementor_changelog_file ) ) { WP_Filesystem(); $cafe_elementor_changelog = $wp_filesystem->get_contents( $cafe_elementor_changelog_file ); $cafe_elementor_changelog_list = cafe_elementor_parse_changelog( $cafe_elementor_changelog ); echo '