'page', 'posts_per_page' => 1, 'title' => $beauty_cosmetic_shop_pagename ); $beauty_cosmetic_shop_query = new WP_Query( $beauty_cosmetic_shop_args ); $beauty_cosmetic_shop_page_id = '1'; if (isset($beauty_cosmetic_shop_query->post->ID)) { $beauty_cosmetic_shop_page_id = $beauty_cosmetic_shop_query->post->ID; } return $beauty_cosmetic_shop_page_id; } //about theme info add_action( 'admin_menu', 'beauty_cosmetic_shop_gettingstarted' ); function beauty_cosmetic_shop_gettingstarted() { add_theme_page( esc_html__('Beauty Cosmetic Shop', 'beauty-cosmetic-shop'), esc_html__('Beauty Cosmetic Shop', 'beauty-cosmetic-shop'), 'edit_theme_options', 'beauty_cosmetic_shop_about', 'beauty_cosmetic_shop_mostrar_guide'); } // Add a Custom CSS file to WP Admin Area function beauty_cosmetic_shop_admin_theme_style() { wp_enqueue_style('beauty-cosmetic-shop-custom-admin-style', esc_url(get_template_directory_uri()) . '/inc/getstart/getstart.css'); wp_enqueue_script('beauty-cosmetic-shop-tabs', esc_url(get_template_directory_uri()) . '/inc/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-cosmetic-shop-notice', esc_url(get_template_directory_uri()) . '/inc/getstart/js/notice.js', array('jquery'), time(), true); wp_enqueue_script('beauty-cosmetic-shop-notice'); // Admin notice code END } add_action('admin_enqueue_scripts', 'beauty_cosmetic_shop_admin_theme_style'); // Changelog if ( ! defined( 'BEAUTY_COSMETIC_SHOP_CHANGELOG_URL' ) ) { define( 'BEAUTY_COSMETIC_SHOP_CHANGELOG_URL', get_template_directory() . '/readme.txt' ); } function beauty_cosmetic_shop_changelog_screen() { global $wp_filesystem; $beauty_cosmetic_shop_changelog_file = apply_filters( 'beauty_cosmetic_shop_changelog_file', BEAUTY_COSMETIC_SHOP_CHANGELOG_URL ); if ( $beauty_cosmetic_shop_changelog_file && is_readable( $beauty_cosmetic_shop_changelog_file ) ) { WP_Filesystem(); $beauty_cosmetic_shop_changelog = $wp_filesystem->get_contents( $beauty_cosmetic_shop_changelog_file ); $beauty_cosmetic_shop_changelog_list = beauty_cosmetic_shop_parse_changelog( $beauty_cosmetic_shop_changelog ); echo '
'; echo wp_kses_post( $beauty_cosmetic_shop_changelog_list ); echo '
'; echo ''; } } function beauty_cosmetic_shop_parse_changelog( $beauty_cosmetic_shop_content ) { $beauty_cosmetic_shop_content = explode ( '== ', $beauty_cosmetic_shop_content ); $beauty_cosmetic_shop_changelog_isolated = ''; foreach ( $beauty_cosmetic_shop_content as $key => $beauty_cosmetic_shop_value ) { if ( strpos( $beauty_cosmetic_shop_value, 'Changelog ==' ) === 0 ) { $beauty_cosmetic_shop_changelog_isolated = str_replace( 'Changelog ==', '', $beauty_cosmetic_shop_value ); } } $beauty_cosmetic_shop_changelog_array = explode( '= ', $beauty_cosmetic_shop_changelog_isolated ); unset( $beauty_cosmetic_shop_changelog_array[0] ); $beauty_cosmetic_shop_changelog = '
'; foreach ( $beauty_cosmetic_shop_changelog_array as $beauty_cosmetic_shop_value ) { $beauty_cosmetic_shop_value = preg_replace( '/\n+/', '', $beauty_cosmetic_shop_value ); $beauty_cosmetic_shop_value = '
= ' . $beauty_cosmetic_shop_value . '
'; $beauty_cosmetic_shop_changelog .= str_replace( '', '', $beauty_cosmetic_shop_value ); } $beauty_cosmetic_shop_changelog .= '
'; return wp_kses_post( $beauty_cosmetic_shop_changelog ); } //guidline for about theme function beauty_cosmetic_shop_mostrar_guide() { //custom function about theme customizer $beauty_cosmetic_shop_return = esc_url( add_query_arg( array() ) ); $beauty_cosmetic_shop_theme = wp_get_theme( 'beauty-cosmetic-shop' ); ?>

beauty_cosmetic_shop_recommended_actions; ?>
: get( 'Version' ) ); ?>