How to register shortcode in WordPress

Single shortcode function single_shortcode_name( $atts, $content = null ) { return ‘<div class=”singe_shortcode_wrapper”>’.do_shortcode($content).'</div>’; } add_shortcode(‘single_shortcode’,...

WP Plugin QuickStart Pack

//Plugin information /* Plugin Name: Your plugin Name Plugin URI: http://example.com/pluginsurl Description: Given your plugin description here. Author: Author Name Version: 1.0 Author URI: http://example.com/ */ //The latest jquery need to use every plugin function...

Add auto logout period

function logged_in( $expirein ) { return 604800; // 1 week in seconds } add_filter( ‘auth_cookie_expiration’, ‘logged_in’ );