by kodeJ | Oct 9, 2021 | PHP, WordPress
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...
by kodeJ | Aug 26, 2021 | 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...
by kodeJ | Jun 7, 2021 | PHP
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...
by kodeJ | Jun 2, 2021 | WordPress
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...
by kodeJ | May 5, 2021 | WordPress
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'; ?>...