Custom Text Under Navigation Links

Yes, but you need to use a custom walker. You must modify the function that traverse the page and output the HTML. Extend the basic wordpress class and implement your function. See this stackechange post for a code example. Note: I suggest you to use wp_nav_menu (custom menus) instead of wp_list_page and use the item … Read more

locate_template with multiple categories?

The code you posted is looping through all the categories that the post is assigned. The foreach constructs a string representing every possible template file that it wants to check for and assigns them all to $template. The locate_template() function will go through the $templates array and return the first one of them that actually … Read more

Multisite Backup Plugin [closed]

I’ve been thinking about this as a feature to add to DBC Backup 2 (my plugin). Currently the plugin will backup the WordPress database for your entire multisite. The problem I found with wanting to backup a subsite is that it is impossible for the subsite ‘owner’ to restore from that backup. The plugin could … Read more

How to expire all wordpress user passwords instantly?

Some underlying functionality borrowed from http://wordpress.org/extend/plugins/auto-expire-passwords/ , and tweaked. Untested, but along the lines of what you are looking for, so YMMV. function custom_forced_password_reset( $user ) { update_user_meta( $user->ID, ‘password_was_force_reset’, true ); } add_action( ‘password_reset’, ‘custom_forced_password_reset’ ); // Ensure all new register users have the flag set function custom_forced_password_user_register($user_id){ update_user_meta( $user_id, ‘password_was_force_reset’, true ); } … Read more