Author: Shazzad Hossain Khan
-
Schedule Additional Cron Job with cron_schedules WordPress hook
Add custom cron schedules to WordPress with the cron_schedules filter, then register and handle events on your new intervals.
-
W4 Post List Examples
Live examples of lists built with the W4 Post List plugin – post lists, photo grids, year/month archives, categories and tags, with the templates and CSS used.
-
Display Users login time on WP Admin Users Table
Save each user’s login time with the wp_login hook and show it in a new Last login column on the WP Admin users table.
-
WordPress Login Page Customization by filters, actions & plugins
Customize wordpress login,registration,reset page & login page logo/title/url address displayed through wp-login.php. Use action & filter hooks,do not edit core files
-
jQuery On Change Radio value
Get the selected radio button value with jQuery, by name or class, and react to changes with the change event.
-
Create or modify wordpress post type with register_post_type function
Register a custom post type with register_post_type on the init hook, with the arguments that matter – show_ui, show_in_rest, supports, rewrite and capabilities.
-
register_taxonomy – WordPress Function to Create or Modify Taxonomy
Create or modify a WordPress taxonomy with register_taxonomy – hierarchical, query_var, rewrite and show_in_rest arguments explained with a working example.
-
Strip out all Html, Php, Js tags by wp_strip_all_tags WordPress Function
What wp_strip_all_tags does beyond PHP strip_tags – it removes script and style contents too, and can collapse line breaks.
-
Hex color validation with regex
Validate a hex color code in PHP with preg_match, covering both the 6 character and 3 character shorthand forms.