Search results for: “current_user_can”
-
Adding Custom Fields to WordPress User Profile
The user profile of WordPress can be fairly easily adapted to add your own values. So you can add the necessary fields according to your requirements. Here is how you do it, we add a field for the address and the content will be stored in the database. Various hooks in WordPress make sure that…
-
Restrict Mime Types on WordPress Media Upload
WordPress has changed the library in version 3.3 – which I think is an improvement. The restrictions in terms of file types remains and you can control them via hook. So you can limit or extend the file-types. Via two hooks, this is done quickly and there is a notification displayed in your backend which…
-
Activate WordPress Plugins Automatically via a Function
WordPress stores the active Plugins in the database table options, field activate_plugins, so it is easy to change this value to activate various Plugins by WordPress; either as a Plugin solution after setting up a new installation or because some Plugins need some other Plugins.
-
Disable password fields for non-admins
So you’ve created a user and added a strong password because you care for your blog’s security? Unfortunately you can’t be sure that the user will keep this strong password since he/she can change it to a much weaker one on his profile page. This problem can be solved by adding a filter:
-
Remove Menu Item in WordPress Admin Panel
With WordPress Version 3.1 two new functions were added which makes it easier to remove menu- and submenu-entries in WordPress Admin Panel. These functions removing entries of the menu-tree remove_menu_page or submenus – remove_submenu_page.
-
Publish Your Posts Later On Your Website
I explained quite a while ago about publishing a feed with a certain delay. Of course you can do this also for your frontend. Thus, the content will be published to the reader only after a certain period of time. A little script as an example will show you how.