This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: No french punctuation and accents for filename | |
Description: Remove all french punctuation and accents from the filename of upload for client limitation (Safari Mac/IOS) | |
Plugin URI: http://www.beapi.fr | |
Version: 1.0 | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
This program is free software; you can redistribute it and/or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
To allow temporary access to content with Woocommerce Membership, | |
you have to check this checkbox : "Check this box if you want to | |
force the content to be public regardless of any restriction rules | |
that may apply now or in the future." | |
Here is a way to make this access temporary without having to edit | |
you post to uncheck the checkbox each and every day on each new publicly | |
released content. Let the WordPress cron job uncheck it for you :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'after_setup_theme', 'mytheme_woocommerce_set_image_dimensions' ); | |
function mytheme_woocommerce_set_image_dimensions() { | |
// Do not set sizes multiple times | |
if ( ! get_option( 'mytheme_shop_image_sizes_set' ) ) { | |
$catalog = array( | |
'width' => '768', // px | |
'height' => '', // px | |
'crop' => 0 // no-crop | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "sebmeric.id" is my Blockstack ID. https://onename.com/sebmeric |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WooCommerce membership custom post excerpt | |
* Description: Instead of using the excerpt this will display the begining of a post for non members. | |
* Version: 0.1 | |
* Author: Sébastien Méric <sebastien.meric@gmail.com> | |
* Author URI: http://www.sebastien-meric.com/ | |
**/ | |
defined( 'ABSPATH' ) OR exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Nemus Slider | |
* https://wordpress.org/plugins/nemus-slider/ | |
* nemus-slider.php line 75 | |
* Reported issue : https://wordpress.org/support/topic/php-fatal-error-call-to-a-member-function-add_cap-on-a-non-object/ | |
*/ | |
//Capabilities | |
function nemus_slider_add_caps_to_admin() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add to cart before applying coupon | |
* | |
* Made to be used with the "Smart Coupons" WooCommerce extention. | |
* If we apply coupon from url and the coupon is dedicated to a specific product, the coupon is not applied if | |
* the product is not already in cart. So, before applying the coupon we add this product to cart. | |
* | |
* @link | |
* @version 1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Woocommerce custom extra tab | |
* | |
* Adds a metabox to define a custom tab label and content on woocommerce product pages. Also remove predifined | |
* description tab title so we can define our own directly inside tab content. | |
* | |
* @link https://gist.github.com/smeric/ff09b2f993dc8378a04a | |
* @version 1.0.1 | |
* @package woocommerce_custom_extra_tab |