https://millionclues.com/wordpress-tips/making-classes-php-7-compatible/
https://millionclues.com/wordpress-tips/making-classes-php-7-compatible/
https://millionclues.com/wordpress-tips/making-classes-php-7-compatible/
By OutsourcedContent — on November 13, 2017 For general sanitization of text input fields and text areas for plugin options and such, use: sanitize_text_field( string $string ) For escaping in general for text input fields, use: esc_attr( string $string ) @refer https://wordpress.stackexchange.com/a/66323/90061
Sometime you want to reward your registered user of your website with a special gift available only to them or maybe you have a important announcement/update for them or you simply want to send a message only to them. To accomplish that, this code snippet below creates a new shortcode with which to wrap content…
By OutsourcedContent — on June 29, 2021 WordPress by default will preserve capitalisation in filename for images. To make filenames lowercase automatically, add the following to the functions.php of your active theme. /** * Convert filename to lowercase * * @author Arun Basil Lal * @refer https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_handle_upload_prefilter */ function prefix_convert_filename_to_lowercase( $file ) { $image_extensions =…
By OutsourcedContent — on January 6, 2018 If Debug logging is enabled, simply use the error_log() function and it will be written to /wp-content/debug.log . Refer this article to see how it can be done: Enable Debug Logging In WordPress You can also write the error_log to a file. WP_DEBUG need not be set to…
WordPress comes with a number of default widgets which allow blog owners to easily add some basic features to their website and one of them is Recent Posts widget. This particular widget, as the name suggests, displays a number of most recent blog posts in WordPress widgetized sidebar. It’s very easy to use, simply drag…
Many of you may have noticed the browser upgrade warning message on your WordPress admin panel dashboard. WordPress shows this warning message in admin panel if it detects you are using an old/outdated browser. Although it’s highly recommended to use latest browser on your system but sometime you don’t have the luxury of upgrading your…