“You have the latest version of WordPress. Future security updates will be applied automatically.”

Since version 3.7 WordPress has automatic background updates. By default, only minor releases – such as for maintenance and security purposes – and translation file updates are enabled on most sites. In special cases, plugins and themes may be updated. Of course, as with many things in WP, you can modify that behavior with config … Read more

Make sub menu items a main link in the admin menu using fuctions.php

OK, it’s a bit messy, but it works. Take a look function remove_submenus() { global $submenu; unset($submenu[‘themes.php’][10]); // Removes Menu } add_action(‘admin_menu’, ‘remove_submenus’); function new_nav_menu () { global $menu; $menu[99] = array(”, ‘read’, ‘separator’, ”, ‘menu-top menu-nav’); add_menu_page(__(‘Nav Menus’, ‘mav-menus’), __(‘Nav Menus’, ‘nav-menus’), ‘edit_themes’, ‘nav-menus.php’, ”, 99); } add_action(‘admin_menu’, ‘new_nav_menu’); Essentially it is removing the … Read more

Editor access to plugin settings

Unfortunately, the plugin author did not leave room for a filter. But I did request one for you here. I suggested changing: /* Add option page */ function cd_setting_page(){ add_options_page( ‘Commenter data Settings’, ‘Commenter data Settings’, ‘administrator’, ‘commenterdata-settings’, array( $this, ‘cd_renderer’ )); } to /* Add option page */ function cd_setting_page(){ $cap = apply_filters( ‘commenter_data_settings_page_capability_filter’, … Read more

How to use control_callback when creating a widget via functions.php or plugin?

Actually the from fields only should be in the control_callback function , both form and handling so try this: <?php /* Plugin Name: custom dashboard widget Plugin URI: http://en.bainternet.info Description: custom dashboard widget with control form Version: 0.1 Author: bainternet Author URI: http://en.bainternet.info */ //show widget function custom_dashboard_widget_coach() { //get saved data if ( !$widget_options … Read more

Delete Custom Dashboard Widgets

The built-in dashboard widgets are not marked somehow, you have to use a fixed list: ‘dashboard_right_now’, ‘dashboard_plugins’, ‘dashboard_quick_press’, ‘dashboard_recent_drafts’, ‘dashboard_recent_comments’, ‘dashboard_incoming_links’, ‘dashboard_primary’, ‘dashboard_secondary’ So your code should test if the current widget is in that list and remove the widget, if it isn’t: add_action( ‘wp_dashboard_setup’, ‘t5_remove_custom_dashboard_widgets’, 11 ); function t5_remove_custom_dashboard_widgets() { global $wp_meta_boxes; $builtin = … Read more

How to add menu to Dashboard that can be viewed by all users

You have to use the right capability for this. You chose manage_options, which by default only users with an Administrator user role have. So, change it to read or exist, for instance, and every user will be able to see and access the menu. add_dashboard_page( ‘custom menu title’, ‘Test’, ‘read’, ‘custompage’, ‘my_custom_menu_page’, plugins_url( ‘test/images/icon.png’ ), … Read more

Extension preview disapeared since WP 4.5.2

Your error log does tell you the reason, it’s the part about: Refused to display … in a frame because it set to ‘X-Frame-Origin’ to ‘SAMEORIGIN,DENY’ And the reason for that is the one about “conflicting values” before it. WordPress core only sends SAMEORIGIN value in admin screens, via send_frame_options_header(). So DENY is coming from … Read more

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