Make update or error messages disappear automatically

It’s a very small code snippet you can use to make your user interface more user appealing.

For the all the updates or error messages, you can apply this jQuery snippet to hide the div automatically after few seconds.

jQuery(document).ready( function(){
  setInterval(function(){
        jQuery('.message.updated').hide('slow', function(){ 
            jQuery('.message.updated').remove(); 
        });
    },8000);
});

Where you can replace the selector  .message.updated with your own custom selector.
Also adjust the time span 8000 to your desired time in ms, after which the division tag disappears.

The hide(‘slow’) function provides a nice animation.

Happy Coding!

Strip Multiple Shortcodes in WordPress

The code snippet allows you to exclude particular pages or post from running the shortcode, it simply removes the shortcode instead of displaying or running it.

You can use this code to strip out one or more shortcodes, as needed.
Just call the function dot1_strip_shortcode for a particular post or category of posts or for the whole lists of posts.

Add this code to your functions.php:

global $remove_shortcode;
/**
* Strips and Removes shortcode if exists
* @global int $remove_shortcode
* @param type $shortcodes comma seprated string, array of shortcodes
* @return content || excerpt
*/
function dot1_strip_shortcode( $shortcodes ){
global $remove_shortcode;
if(empty($shortcodes)) return;

if(!is_array($shortcodes)){
$shortcodes = explode(',', $shortcodes);
}
foreach( $shortcodes as $shortcode ){
$shortcode = trim($shortcode);
if( shortcode_exists($shortcode) ){
remove_shortcode($shortcode);
}
$remove_shortcode[$shortcode] = 1;
}
add_filter( 'the_excerpt', 'strip_shortcode' );
add_filter( 'the_content', 'strip_shortcode' );
}
function strip_shortcode( $content) {
global $shortcode_tags, $remove_shortcode;

$stack = $shortcode_tags;
$shortcode_tags = $remove_shortcode;
$content = strip_shortcodes($content);

$shortcode_tags = $stack;
return $content;
}

Call the function dot1_strip_shortcode(), with proper arguments as per your condition.

e.g. :

dot1_strip_shortcode( 'Test' );
dot1_strip_shortcode( 'Test, new_shortcode' );
dot1_strip_shortcode( array('Test', 'new_shortcode') );

WordPress User Tags

Like Post Tags, WordPress User Tags Plugin allows to add taxonomies under user section, each tag has a dynamic template which displays the list of all users. Template allows you to filter the title and list style.

It can be used to categorize site users to specify their personal interests in various domains. The categories allows to filter them based on the tags.

user-taxonomies

You can register Taxonomies on the fly, and manage tags for the taxonomies.

user-tags-manager

Every user can than add tags to his profile as per their interests. In profile section user gets an option to add different tags as per their choices.

profile-tags

Tags section allows auto suggestion as well as creating new tags.

You can also `user_tags` shortocde to allow users to add tags from front end.

Post   test plugins.com

For each tag there is a page template listing all the users having same interests. There are filters available to modify listing and content for template page:

ut_template_heading : can be used to modify Template Page Heading
ut_tepmplate_content : Can be used to modify users list style,
        args => 1 , $users => list of Users
ut_template_content_empty: display custom message, if there are no users for term
user-tags-template

WordPress Download Link: User Tags

Ref: Custom User Taxonomies in WordPress