Fix WordPress File Upload Errors

Fix WordPress File Upload Errors

Have you ever experienced the “Sorry, this file type is not permitted for security reasons”  error? This file upload error may happen when working with file upload WordPress Plugins. For example, I recently worked with WP User Frontend Pro and needed to upload...
Upload Resize Image with PHP

Upload Resize Image with PHP

Uploading and resizing an image file with PHP can be accomplished by using the following provided source code. This PHP code example will work with JPEG, GIF, and PNG image files. The following code example shows when submitting from an HTML field input field with the...
PHP Date Time

PHP Date Time

The following PHP code will return a PHP string variable that is the current server date and time in a format like 2021-06-7 19:43:56. Here is a PHP code example of how the PHP date() function works. PHP date() Function PHP $current_datetime = date('y-m-d h:i:s'); 123...
Using MFA in Wordfence

Using MFA in Wordfence

Multi-Factor Authentication (MFA) stands as a crucial line of defense for WordPress administrators. With the ever-present threat of cyberattacks, protecting sensitive content and user data is paramount. MFA provides an additional layer of security beyond just...
WordPress Get Current User ID

WordPress Get Current User ID

This useful PHP code snippet shows you how to use a WordPress function to get the current user id. This code shows creating the user id as a PHP string variable and displaying it using echo. PHP <?php $the_user_id = get_current_user_id(); echo '$the_user_id'; ?>...