Hooking into register_admin_color_schemes

No, you can’t hook into that function since there is no do_action or apply_filters in it, the function itself hooks to admin_init. So if your goal is to add new color schemes you have to hook your code the same way, so using your example, the required code would be something like this: // Define … Read more

How to display multiple custom columns in the wp-admin users.php?

hummm… do you mean something like this : function mysite_column_company( $defaults ) { $defaults[‘mysite-usercolumn-company’] = __(‘Company’, ‘user-column’); $defaults[‘mysite-usercolumn-otherfield1’] = __(‘Other field 1’, ‘user-column’); $defaults[‘mysite-usercolumn-otherfield2’] = __(‘Other field 2’, ‘user-column’); return $defaults; } function mysite_custom_column_company($value, $column_name, $id) { if( $column_name == ‘mysite-usercolumn-company’ ) { return get_the_author_meta( ‘company’, $id ); } elseif( $column_name == ‘mysite-usercolumn-otherfield1’ ) { … Read more

Where can I edit Admin Panel Page file

You can add the custom help by adding a hook to the page load e.g. page-new.php would become load-page-new.php function custom_help_page() { add_filter(‘contextual_help’,’custom_page_help’); } function custom_page_help($help) { $custom = “<h5>Custom Help</h5> <p>Custom help content</p>”; return $custom.$help; } add_action(‘load-page-new.php’,’custom_help_page’); //New page add_action(‘load-page.php’,’custom_help_page’); //Page, edits, updates etc. If you don’t want the default help to still display, … Read more

WordPress wp-admin suddenly lost its style

This sounded very much like a caching problem. Specifically Browser Caching. Sometimes your Server may fail to fully serve an asset. Sometimes your Browser may incorrectly store an asset. This could have been a corrupt JavaScript file, or a corrupt CSS file. Either way, it was causing aesthetic problems on the Administration Screen of WordPress … Read more

TinyMCE Autoresize

Here’s a solution. There’s a slight problem as it does not recognize when images are added to the editor. 1: Create a folder with the name tinymce-autoresize in the plugins folder. 2. Create a file in tinymce-autoresize named tinymce_autoresize.php with this content: function intialize_autoresize_plugin() { // Check user permission if ( ! current_user_can(‘edit_posts’) && ! … Read more

Change the Return URL from the Customizer

Yes, this is possible. On the link, there you create for the customizing view can you add a return parameter with the url, for this option. I mean, you must change the the link for the Customize Link in the Admin Menu. The follow demonstrate this. I create at fist a link inside the “Appearance” … Read more