I changed font of wordpress dashboard but it is slow!
as @TomJNowell told me in the comment, it was because of heavy font files. so I decided to use just woff2 format and removed other formats.
as @TomJNowell told me in the comment, it was because of heavy font files. so I decided to use just woff2 format and removed other formats.
Firstly, let’s start off by cleaning up the query you have above. I’ve put it into Heredoc syntax to make it easier to read. $sql = <<<SQL SELECT * FROM {$tablename} — you should use interpolation when working in a string that can have variables WHERE ( — Your query will only ever match one … Read more
This is not a core WordPress button so it must be added by a plugin. You can upload a PDF with the add media button anyway, so look for the plugin that’s adding it and disable it.
Is there something that I’m missing Yes, you need to actually add the function which will do the sorting based on your usercoins “sort by” value (that you set in your yoursite_manage_users_custom_column_sortable() function). So you would hook your function on users_list_table_query_args, then change the args so that the users are being sorted by the usercoins … Read more
I could see “WP Links Page” is a custom post type, so if it’s not registered by your own code, e.g. it’s registered by a plugin (using register_post_type()), then you can use the register_post_type_args filter to change the menu_position argument like so: add_filter( ‘register_post_type_args’, ‘my_override_register_post_type_args’, 10, 2 ); function my_override_register_post_type_args( $args, $post_type ) { // … Read more
You could remove all actions from the admin_notices hook. The best way to do that might be from the earliest priority of the hook itself, that way you catch any notices registered late. add_action( ‘admin_notices’, function() { if ( ! current_user_can( ‘manage_options’ ) ) { remove_all_actions( ‘admin_notices’ ); } }, 0 ); The problem is … Read more
I just inatalled it and used the Custom menus and i get no description Never the less.. This theme have a “disable description in Header Menu” feature. On Your wordpress menu go to: Graphene Options >> Display >> Navigation Menu Display Options.. Click the “disable description in Header Menu” And your done..
Just add your custom item into $menu instead of $submenu. Use here as a reference for parent menu structure. http://core.trac.wordpress.org/browser/tags/3.2.1/wp-admin/menu.php Eg. add_action( ‘admin_menu’ , ‘admin_menu_wpse32975’ ); function admin_menu_wpse32975() { global $menu; $menu[9999] = array( __(‘My Menu’), ‘manage_options’, ‘http://www.google.com’, ”, ‘open-if-no-js menu-top’, ”, ‘div’ ); }
Most of these files are in wp/admin/network. But be aware that some are just wrappers for regular admin files one level up: they include the corresponding file. What you probably need are the hooks and the function is_network_admin() that checks if you are currently on a network admin page. Most hooks and global variables are … Read more
Here are two methods: Method 1 You could remove the whole Right Now metabox from your dashboard: function custom_dashboard() { if(!current_user_can(‘manage_options’)){ // only remove it for non-admins remove_meta_box(‘dashboard_right_now’, ‘dashboard’, ‘core’); } } add_action(‘admin_init’,’custom_dashboard’); and then add another custom Right Now metabox with your custom code. You could for example check out the WordPress function wp_dashboard_right_now() … Read more