Category: Wordpress

Helper functions for WP filters

Helper functions for WP filters

If you need some default values for WordPress filters you can use such helper functions: __return_false() — returns logical FALSE.__return_true() — returns logical TRUE.__return_empty_array() — returns an empty array: array().__return_zero() — returns a number 0.__return_null() — returns NULL.__return_empty_string() — returns an empty string: ”. Example: add_filter( ‘custom_menu_order’, ‘__return_true’ );  

WP Comment Object

WP Comment Object

WP_Comment Object ( [comment_ID] => 5 [comment_post_ID] => 1665 [comment_author] => webbizdirect@gmail.com [comment_author_email] => webbizdirect@gmail.com [comment_author_url] => [comment_author_IP] => 192.168.42.7 [comment_date] => 2020-01-17 13:49:26 [comment_date_gmt] => 2020-01-17 13:49:26 [comment_content] => Zodra er een enquête beschikbaar is die bij jou past, ontvang je een e-mail. Je kunt dan zelf bepalen of je die enquête wel of…

Read More Read More

How to Use Animated GIFs as WordPress Featured Images

How to Use Animated GIFs as WordPress Featured Images

When you upload an animated GIF to WordPress, it does all of it’s resizing magic to make the various thumbnail sizes (defaults are thumbnail, medium and large, in addition to the original full). When it does this, the resized versions lose their animation.

How to rename your WordPress wp-content directory

How to rename your WordPress wp-content directory

If you have been working with WordPress, you probably already know that all assets like images, stylesheets, themes, and plugins in WordPress are by default, stored under the /wp-content/ directory. But, do you know that we can actually change this folder name into something else, and yet it will still work?