Cross-Site Scripting (XSS)
| |

Cross-Site Scripting (XSS)

Cross-Site Scripting occurs when user input variables are not being escaped (output) and sanitized (input) properly. This usually happens due to there not being any sanitization and escaping at all or due to a misunderstanding of some of the WordPress functions. The example below assumes a user input variable is saved directly inside of an…

|

How to Install WordPress on Ubuntu server by terminal

Install WordPress on Ubuntu server with the terminal in 5 easy steps 1) Update Ubuntu packages Use apt to update and upgrade ubuntu dependencies sudo apt update sudo apt upgrade -y 2) Install apache server, MariaDB, php php-mysql php-cli php-common php-gd sudo apt install apache2 mariadb-server mariadb-client php php-mysql php-cli php-common php-gd -y 3) Download,…

|

Before After image Gutenberg Block

If you’re a WordPress user who wants to showcase the impact of your products or services with before-and-after images, the Before After Image Gutenberg Block is the perfect plugin for you. This block can be used to highlight the transformations achieved with your services or products, and visually demonstrate their effectiveness. What is the Before…

| |

WordPress Memory Exhausted Error

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx To solve this problem need to increase PHP memory limit: First, you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP…

| | |

Add custom field product single page

To add custom meta field in the product single page and save the field data then get value, Need to add this following code You can add this code in your function.php file // Adding a custom Meta container to admin products pages add_action(‘add_meta_boxes’, ‘create_custom_meta_box’); if (!function_exists(‘create_custom_meta_box’)) { function create_custom_meta_box() { add_meta_box( ‘custom_product_meta_box’, __(‘ Product…

| | |

Add registration custom field Tutor LMS

If you want to add any custom field in your registration page, then you need to follow the following four steps: First, need to add a function in your function.php file Then, Need to override the registration page and need to add following code, here the file path location : plugins/tutor/templates/dashboard/registration.php Then, add a field…