Tag Info

Hot answers tagged

6

Here's an example of the data returned from the wp_get_update_data() function: Array ( [counts] => Array ( [plugins] => 3 [themes] => 2 [wordpress] => 0 [translations] => 0 [total] => 5 ) [title] => 3 Plugin Updates, 2 Theme Updates ) So the number of ...


5

wp_get_update_data() returns an array in this format counts plugins themes wordpress translations total title So, if you want total count, you need to use it like this $updates = wp_get_update_data(); echo $updates['counts']['total'];


2

There is also a plugin named Adminize that will allow you to completely customize what the client can see in the admin. If you use this plugin you can set yourself up as Admin and then give your client a lesser role, which will allow you to continue to have administrative control over the site.


1

after you delete a page ,on the "all pages" section, on the top, after the "drafts", there is link to trash, go there and delete it permanently, after this you can change the slug name.


1

lets say it depends on you, but we have two different ways for this: end the contract after finishing the website: in this way after finishing the process of developing and designing the website we teach the client what to do with his/her admin panel and give them full access for that! Support Contract after finishing the website: in this way after ...


1

There are several ways to add scripts only to certain admin pages. The best option, from my point of view, is to hook into admin_enqueue_scripts and use the $hook parameter: add_action('admin_enqueue_scripts', 'cyb_admin_scripts'); function cyb_admin_scripts( $hook ) { //You may need adjustment here to match for page //If the URL of your page is ...



Only top voted, non community-wiki answers of a minimum length are eligible