How to create admin tabs [closed]

These tabs don’t come from WordPress – it’s not part of WP GUI. So if you want to achieve that look, you’ll have to implement it by yourself using custom HTML, implementing most of the logic and using add_menu_page. But… It isn’t a good idea. First of all, interface should be consistent. All WP users … Read more

lock meta box position on post edit screen for contributors

Found this while trolling the internets… Works Perfectly add_action(‘admin_init’, ‘set_user_metaboxes’); //I want it to fire every time edit post screen comes up //add_action(‘user_register’, ‘set_user_metaboxes’); //You can also have it only set when a new user is created function set_user_metaboxes($user_id=NULL) { //These are the metakeys we will need to update $meta_key[‘order’] = ‘meta-box-order_events’; $meta_key[‘hidden’] = ‘metaboxhidden_events’; … Read more

How to change number of items on add new pluggins page from backend?

You can filter the parameters for this view per install_plugins_table_api_args_search. See wp-admin/includes/class-wp-plugin-install-list-table.php for the details. You get an array as argument that looks like this: Array ( [page] => 1 [per_page] => 30 [fields] => Array ( [last_updated] => 1 [icons] => 1 [active_installs] => 1 ) [locale] => en_US [installed_plugins] => Array ( [0] … Read more

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