Minimum version for WordPress Backbone

It was introduced in 3.5 for the media library, but it’s been periodically updated since then. Honestly, it’s been around long enough that you’re almost certainly using something else that has a more recent requirement.

Editor’s role in WP

You are right indeed, users with the “editor” role do not have the ‘edit_theme_options’ capability, which is required to access the following: Appearance > Widgets Appearance > Menus Appearance > Customize if they are supported by the current theme Appearance > Background Appearance > Header (source) For a complete reference of roles and capabilities, and … Read more

Difference between admin and user admin

A “user admin screen” (or interface page) is a page in wp-admin for managing users. An “admin screen” (or interface page) is any page in wp-admin, which includes user admin screens but also screens for managing other types of data.

Ajax solution similar to WP Categories functioning in Admin area

first your form that calls the ajax must have the an action filed with the value of the ajax hook for example your ajax call is: add_action(‘wp_ajax_show_all_tracks’, ‘show_all_tracks’); the your form action field must be: <input type=”hidden” name=”action” value=”show_all_tracks” /> thats for start’ so as for adding tracks you need to add a function to … Read more

How to replace “Password Protected” text with icon in Admin

Try this (don’t forget to replace icon URL): add_filter( ‘display_post_states’, ‘password_protected_icon’ ); function password_protected_icon( $post_states ) { $text = __(‘Password protected’); $pos = array_search( $text, $post_states); if( false !== $pos ) $post_states[$pos] = ‘<img src=”http://i.stack.imgur.com/aIDa6.png” title=”‘.htmlspecialchars($text).'”/>’; return $post_states; }

How do you force the wordpress dashboard to be 1 coulmn by default?

I found a promising looking answer to this question in the following post: http://wordpress.org/support/topic/customizing-admin-area-using-functionsphp-2-questions It recommends using this code in the functions.php file: function so_screen_layout_columns( $columns ) { $columns[‘dashboard’] = 1; return $columns; } add_filter( ‘screen_layout_columns’, ‘so_screen_layout_columns’ ); function so_screen_layout_dashboard() { return 1; } add_filter( ‘get_user_option_screen_layout_dashboard’, ‘so_screen_layout_dashboard’ ); Hope that helps!

Trying to get custom js files in my admin header

Ahh ok I figured it out while researching. I needed to add the $hook parameter and pass it to my function like so: function my_admin_enqueue_scripts($hook) { global $current_screen; if ( ‘post.php’ != $hook ) return; wp_register_script(‘my-scripts’, get_template_directory_uri() . ‘/js/custom/my-scripts.js’ ); wp_enqueue_script(‘my-scripts’); wp_localize_script(‘my-scripts’, ‘wp_ajax’, array( ‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ))); } This gave me the results … Read more

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