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…

| |

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…