Categorieën
WordPress Tuning

Block requests for YITH WooCommerce Wishlist plugin by HTTP referer in mod_rewrite

Sometimes you need to block requests in .htaccess that don’t have a valid HTTP referer header (or one you want). For example, a visitor without an referer header cannot add items to a WooCommerce webshop’s wishlist. For that to happen he has to visit the site and has valid referrer information. Here is how to block requests in mod_rewrite .htaccess that don’t have your website as HTTP referer.

Categorieën
WordPress Security

.Htaccess security done right in WordPress

Apache Access Control done right in WordPress .htaccess, ‘Allow/Deny from all’ versus ‘Require All Granted/Denied’
Categorieën
Joomla Documentation

Disable contact form & send email copy in Joomla through MySQL / PhpMyAdmin

When spam is sent CC using Joomla forms, it’s important to disable either the option to send an email copy, or the complete form. This post shows you how.

Categorieën
WordPress Tuning

Disable XCloner log directy in WordPress MySQL wp_options table

UPDATE wp_options
SET
	option_value = '0'
WHERE
	wp_options.option_name = 'xcloner_enable_log';

See the ITFAQ.nl post “WordPress “XCloner – Backup and Restore” log uitschakelen in de MySQL-database” for this information in Dutch.

Categorieën
WordPress Tuning

Set a correct WP_MEMORY_LIMIT value in wp-config.php

You can tune your WordPress blog speed and performance by setting a correct WP_MEMORY_LIMIT in your wp-config.php file. Here is how:

Categorieën
WordPress Testing

Gutenberg backtick to code bug

When I type the `last backtick first, does this all transform to code?`

When I type the first backtick first, does this all transform to code?

When using Firefox and typing in the `last backtick first, what happens then?`

Reference, bug report: https://github.com/WordPress/gutenberg/issues/8579

Categorieën
WordPress Tuning

Ease WordPress Plugin updates by clearing PHP opcode caches first

WordPress updates, like Core-, plugin- and themes, sometimes fail because of enabled PHP opcode caches. Popular PHP opcode caches are OPcache, WinCache and APC. Flushing these opcode caches first eases the WordPress update process. And here is a Must Use Plugin to flush OPcache cache

Categorieën
WordPress Documentation

Bacon Ipsum

Spicy jalapeno bacon ipsum dolor amet tongue ham pork loin shankle ribeye cow t-bone pastrami. Burgdoggen ribeye pancetta, bresaola frankfurter venison alcatra short loin corned beef. Chicken sausage capicola shankle, ground round brisket drumstick burgdoggen meatloaf alcatra. Salami ham alcatra chicken t-bone pork belly.

Categorieën
WordPress Documentation

Test Post with a Tag with Commas

As the title says, this is a WordPress post with a comma separated tag. Sometimes this comes in handy, for example when you want to display a taxonomy called “restaurant, bar” or a city and it’s country: “Groningen, the Netherlands”. This is all done using a simple WordPress filter, are you interested in the code?

Categorieën
WordPress Tuning

Create smaller WP-Super-Cache supercache files

Currently, Vanilla-WP runs with WP-Super-Cache enabled, and my abandoned Database Cache disabled. The fun part of WP-Super-Cache as caching plugin is, it allows the usage of plugins. Yes, a plugin for a plugin 🙂 . One of those plugins is WPSCMin, by Joel Hardi.