Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Weichselgartner mensmaximus

View GitHub Profile
@mensmaximus
mensmaximus / wpbcap_wpml.php
Last active Mar 23, 2018
WPML compatibility for WP-Buddy's Content After Posts Plugin
View wpbcap_wpml.php
<?php
/**
* Up to version 1.8.1 the plugin Content after Posts by WP-Buddy
* does not fully support WPML.
*
* Although 'caps' can be translated with WPML the translated 'caps'
* are not displayed if you switch languages.
*
* Add the follwoing function to your child themes functions.php to
@mensmaximus
mensmaximus / woocommerce_remove_choose_an_option_text.php
Last active Dec 21, 2018
Remove the "choose an option" text from woocomerce attribute dorpdown selectors
View woocommerce_remove_choose_an_option_text.php
<?php
/**
* WooRCO
*
* Adds a checkbox to each variable product in woocommmerce 2.6 to remove the "choose an option" text from attribute dropdowns.
* The checkbox is displayed on the general product data tab.
*
* @install To be dropped into functions.php.
*
* @author mensmaximus