Integrate reCAPTCHA v2 Into Pligg

Pligg supports some CAPTCHA, including Solve Media, and old reCAPTCHA. Now i will write how to use reCAPTCHA v2 (click captcha) into Pligg. First, you must get Google reCAPTCHA keys. Second, open your Pligg admin, set the site & secret key under “CAPTCHA” sub menu and click “configure” next to reCAPTCHA.

Change WooCommerce Items Per Page

To change displayed WooCommerce Items Per Page, add this code to any PHP file (end of “woocommerce.php” / your theme functions.php, etc) // Woo commerce 9 items per page add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 9;’ ), 20 );

PHP HtmlEntities for UTF-8 Characters

If you just use simple PHP htmlentities function with one argument, you will notice that when you pass string that contains UTF-8 characters, the result is incorrect leaving you with some incorrect characters on the result. To use it correctly, use this code 🙂 htmlentities($your_string, ENT_COMPAT, ‘UTF-8’);