Esempio n. 1
0
function admin_menu_overrides()
{
    acf_set_options_page_menu('Theme Options');
}
Esempio n. 2
0
                    </div>
                    <!-- .reply -->
                </article>
                <!-- #comment-## -->
                <?php 
                break;
        }
        // end comment_type check
    }
}
/*
 * ACf Options Page
 */
if (function_exists('acf_add_options_page')) {
    acf_add_options_page(array('page_title' => 'Tabbys Place Theme Options', 'menu_title' => 'Theme Options', 'menu_slug' => 'tabbys-place-theme-options', 'capability' => 'manage_options', 'redirect' => false));
    acf_set_options_page_menu(__('Extra'));
    acf_add_options_sub_page(array('title' => '404', 'parent' => 'tabbys-place-theme-options', 'capability' => 'manage_options'));
}
/*
 * Disable emoji scripts
 */
add_action('init', 'tabbysplace_disable_scripts_styles');
function tabbysplace_disable_scripts_styles()
{
    remove_action('wp_head', 'print_emoji_detection_script', 7);
    remove_action('admin_print_scripts', 'print_emoji_detection_script');
    remove_action('wp_print_styles', 'print_emoji_styles');
    remove_action('admin_print_styles', 'print_emoji_styles');
}
/*
 * Tabbysplace Excerpts
Esempio n. 3
0
	------------------------------------------------------------------------------------------------------------------------ */
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
remove_action('wp_head', 'wp_generator');
remove_action('wp_head', 'start_post_rel_link');
remove_action('wp_head', 'index_rel_link');
remove_action('wp_head', 'adjacent_posts_rel_link');
remove_action('wp_head', 'wp_shortlink_wp_head');
/*	------------------------------------------------------------------------------------------------------------------------
	Options Page
	------------------------------------------------------------------------------------------------------------------------ */
if (function_exists('acf_add_options_page')) {
    acf_add_options_page();
}
if (function_exists('acf_set_options_page_menu')) {
    acf_set_options_page_menu(__('Google & Footer'));
}
/*	------------------------------------------------------------------------------------------------------------------------
	Facebook
	------------------------------------------------------------------------------------------------------------------------ */
function wpfbogp_namespace($output)
{
    return $output . ' prefix="og: http://ogp.me/ns#"';
}
add_filter('language_attributes', 'wpfbogp_namespace');
/*	------------------------------------------------------------------------------------------------------------------------
	Security
	------------------------------------------------------------------------------------------------------------------------ */
// don't say if it was the login or the password that was incorrect
function failed_login()
{
Esempio n. 4
0
function admin_menu_overrides()
{
    if (function_exists('acf_set_options_page_menu')) {
        acf_set_options_page_menu('Theme Options');
    }
}