How to remove “WordPress News” feed downloading?

I am not 100% certain if you are looking for a way to remove the Meta-boxes? If so, following plugin could solve your ‘issue’. (please backup and so on …) /** * Remove Dashboard widgets * * @version WordPress 4.6.1 */ add_action( ‘wp_dashboard_setup’, ‘wpse241195_disable_dashboard_widgets’ ); function wpse241195_disable_dashboard_widgets() { remove_meta_box( ‘dashboard_incoming_links’, ‘dashboard’, ‘normal’ ); // Incoming … Read more

WSOD for admin when using PHP 7

After a lot of testing and considerable frustration, I discovered the problem. I am including this solution in the hope that it saves someone else a lot of frustration if they encounter a similar problem. The problem to be the presence of a PHP closing tag ‘?> ‘ in the functions.php file of the child-theme. … Read more

Can I limit this meta box to a particular page?

Inside your add_meta_boxex hook callback function, you will have an add_meta_box() call. Wrap that call in a conditional, using data from the $post global (I’m fairly certain it is available in edit.php). For example, you could use either the Page ID or slug. Page ID: global $post; if ( ‘123’ == $post->ID ) { // … Read more

Hooking into add_submenu_page

Hook into admin_head, the last action before the menu is rendered, and change the global $menu: add_action( ‘admin_head’, ‘wpse_71303_change_menu_cap’ ); /** * Change the capability to access an admin menu item. * * @wp-hook admin_head * @return void */ function wpse_71303_change_menu_cap() { global $menu; foreach ( $menu as $key => $item ) { // Find … Read more

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

How can I hide certain submenus of the Settings tab in the dashboard?

If you would like to code it yourself, here is a good tutorial for customizing the Admin Menu. http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/ Copying from the tutorial, they remove the Editor sublink: function remove_editor_menu() { remove_action(‘admin_menu’, ‘_add_themes_utility_last’, 101); } add_action(‘_admin_menu’, ‘remove_editor_menu’, 1); note: you need to know the function / action that displays it

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