Custom select box for Firefox while we are waiting for the release of 35!!
A Pen by Thiago Lagden on CodePen.
<?php | |
// Add Variation Settings | |
add_action( 'woocommerce_product_after_variable_attributes', 'variation_settings_fields', 10, 3 ); | |
// Save Variation Settings | |
add_action( 'woocommerce_save_product_variation', 'save_variation_settings_fields', 10, 2 ); | |
/** | |
* Create new fields for variations |
<?php | |
/* | |
MU Plugin: remove-jetpack-css | |
Plugin Name: WP Remove Jetpack CSS | |
Plugin URI: http://www.blog-des-telecoms.com | |
Description: Remove jetpack CSS | |
Version: 1.0 | |
Author: Mathias WOLFF | |
Author URI: http://www.mathias-wolff.fr | |
License: GPLv3 |
<?php | |
// Schedule the CRON Job to purge all expired transients | |
if (!wp_next_scheduled('purge_popup_transients_cron')) { | |
/** | |
* wp_schedule_event | |
* | |
* @param - When to start the CRON job |
<?php | |
/* | |
Plugin Name: Disable XML-RPC + Pingback | |
Plugin URI: http://www.philerb.com/wp-plugins/ | |
Description: This plugin disables XML-RPC API + pingbacks in WordPress 3.5+, which is enabled by default. 2 WP plugins were combined together to cover all bases. | |
Version: 1.0.0 | |
Author: Eric Rasch | |
Author URI: http://ericrasch.com | |
License: GPLv2 | |
*/ |
<?php | |
//Do not copy the above php tag | |
// Stop JetPacks Minified/Concatention CSS file | |
add_filter( 'jetpack_implode_frontend_css', '__return_false' ); | |
//Remove JepPack CSS | |
function themeprefix_remove_jetpack_css() { | |
wp_deregister_style( 'AtD_style' ); // After the Deadline | |
wp_deregister_style( 'jetpack_likes' ); // Likes |
Custom select box for Firefox while we are waiting for the release of 35!!
A Pen by Thiago Lagden on CodePen.
# Don't show errors which contain full path diclosure (FPD) | |
# Use that line only if PHP is installed as a module and not per CGI | |
# try using a php.ini in that case. | |
# Change mod_php5.c to mod_php7.c if you are running PHP7 | |
<IfModule mod_php5.c> | |
php_flag display_errors Off | |
</IfModule> | |
# Don't list directories | |
<IfModule mod_autoindex.c> |
DELETE FROM wp_posts; | |
DELETE FROM wp_post_meta; | |
TRUNCATE TABLE wp_posts; | |
TRUNCATE TABLE wp_post_meta; |
<div class="post-editor-block" id="post-editor-audio-fields" style="display: none;"> | |
<label for="post-editor-audio-embed"><?php _e('Audio URL (oEmbed) or Embed Code', 'post-format'); ?></label> | |
<textarea name="_format_audio_embed" id="post-editor-audio-embed" tabindex="1"><?php echo esc_textarea(get_post_meta($post->ID, '_format_audio_embed', true)); ?></textarea> | |
</div> |
/** | |
* Only display minimum price for WooCommerce variable products | |
**/ | |
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2); | |
function custom_variation_price( $price, $product ) { | |
$price = ''; | |