Does the 3.4.2 Dashboard have Chrome Frame headers?

From wp-includes/vars.php: if ( isset($_SERVER[‘HTTP_USER_AGENT’]) ) { if ( strpos($_SERVER[‘HTTP_USER_AGENT’], ‘Lynx’) !== false ) { $is_lynx = true; } elseif ( stripos($_SERVER[‘HTTP_USER_AGENT’], ‘chrome’) !== false ) { if ( stripos( $_SERVER[‘HTTP_USER_AGENT’], ‘chromeframe’ ) !== false ) { if ( $is_chrome = apply_filters( ‘use_google_chrome_frame’, is_admin() ) ) header( ‘X-UA-Compatible: chrome=1’ ); $is_winIE = ! $is_chrome; } … Read more

Edit/remove wp_dashboard_recent_drafts()

Updated answer: Let’s modify the corresponding dashboard query so it returns no draft posts. Example: If I recall correctly the default Hello World post has ID=1 and the default Sample Page has ID=2. So if we set ID=2, then we can remove the draft list, since it is fetching the post post type. Since WordPress … Read more

Hide the wp-admin bar from dashboard

This might be not proper approach but this worked for me while testing. You can use these combinations to remove all links from Toolbar (admin-bar ) and then hide empty tool bar with css: function remove_admin_bar_links() { global $wp_admin_bar; $wp_admin_bar->remove_menu(‘wp-logo’); // Remove the WordPress logo $wp_admin_bar->remove_menu(‘about’); // Remove the about WordPress link $wp_admin_bar->remove_menu(‘wporg’); // Remove … Read more

How to see wp-config file from WordPress dashboard?

You could create a plugin for a dashboard widget, zip, upload and activate it. Example: <?php # -*- coding: utf-8 -*- /** * Plugin Name: Configuration Dashboard Widget * Description: Show the current installation path and the content of the <code>wp-config.php</code>. * Version: 16.10.15 * Required: 4.0 * Author: Thomas Scholz * Author URI: http://toscho.de … Read more

Hide widgets/plugins from dashboard

WordPress SEO If you want to remove the admin menu: you can do that with: function hide_wpseo() { remove_action(‘admin_menu’, ‘zeo_options_menu’); } add_action( ‘init’, ‘hide_wpseo’); where it will be removed for all users. WordPress SEO by Yoast To hide the admin menu: and the admin menu bar: one can use: function hide_yoastseo() { remove_action(‘admin_bar_menu’, ‘wpseo_admin_bar_menu’,95); remove_menu_page(‘wpseo_dashboard’); … Read more

Browser loading content from Twitter in admin area?

What happens when you try it with all your plugins disabled? What happens when you try is with the default WP theme? What happens when you try it with a different browser that has no browser extensions or add-ins installed? What happens when you set twitter.com -> 127.0.0.1 as suggested?

How do I create a section in the dashboard w/ an input field

This is pretty easy to do with the Dashboard Widgets API http://codex.wordpress.org/Dashboard_Widgets_API. Here are the steps I would take to create this: Queue up a jQuery script for AJAX handling Create a PHP AJAX function and corresponding AJAX hook for saving the form data Create the dashboard widget with HTML form input(s) Here’s a sample … Read more

Video tutorials in Dashboard

I do exactly that with my clients! PDF’s are much harder to assemble & nobody Reads The F Manual, anyway 🙂 And, if you allow me a little digression, I’d recommend this talk about e-learning and video tutorials: Salman Khan: Let’s use video to reinvent education. Dealing with Privacy YouTube offers two possibilities. Private videos … Read more

Move “Menus” link from Appearance > Menus to its own tab on left column Dashboard

Here code how to add new menu and remove old add_action(‘admin_menu’, ‘change_menus_position’); function change_menus_position() { // Remove old menu remove_submenu_page( ‘themes.php’, ‘nav-menus.php’ ); //Add new menu page add_menu_page( ‘Menus’, ‘Menus’, ‘edit_theme_options’, ‘nav-menus.php’, ”, ‘dashicons-list-view’, 68 ); } after this can be some bug with opened “Appearance” but you can fix it with css you can … Read more

What happened to the WordPress dashboard?

Navigate to http://yoursite.dev/wp-admin If you are still getting redirected to the main site check your database, MAMP I beleive comes with PHPmyAdmin, login to that and check your SITE_URL in the WP_OPTIONS table and then check the WP_USERS table to see if your user account is still registered as an admin.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)