This file contains hidden or 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 Bestellung Anpassen | |
| * Description: Ermöglicht das Bearbeiten von Artikelbeschreibungen und Preisen in bestehenden WooCommerce-Bestellungen. | |
| * Version: 1.0.1 | |
| * Plugin URI: https://chris-martens.com/blog/woo-bestellung-aendern | |
| * Author: Chris Martens | |
| * Author URI: https://chris-martens.com | |
| */ |
This file contains hidden or 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: Disable SSL Verification for Webhook in Woocommerce | |
| Plugin URI: https://support.christian-martens.com | |
| Description: Disable SSL Verification for Webhook in Woocommerce | |
| Author: Chris Martens | |
| Author URI: https://chris-martens.com | |
| Version: 1.1 | |
| Text Domain: disable-ssl-woocommerce-webhook |
This file contains hidden or 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
| /** | |
| * | |
| * @author Chris Martens | |
| * @link https://chris-martens.com/ | |
| * @link https://chris-martens.com/blog/honeypot-fuer-kommentarfunktion/ | |
| * @snippet Comments without URL Field. | |
| * | |
| */ | |
| /** Reduce spam comments */ |
This file contains hidden or 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 | |
| function chrmrtns_block_email_addresses($user_id) { | |
| // Liste der zu blockierenden E-Mail-Adressen - List of blocked email addresses | |
| $blocked_emails = array( | |
| 'block@example.com', | |
| 'spam@example.net', | |
| ); |
This file contains hidden or 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
| /** Redirect to product from product category instead of add to cart links */ | |
| add_filter( 'woocommerce_loop_add_to_cart_link', 'chrmrtns_replace_add_to_cart_button', 10, 2 ); | |
| function chrmrtns_replace_add_to_cart_button( $button, $product ) { | |
| if (is_product_category() || is_shop()) { | |
| $button_text = __("Details", "woocommerce"); | |
| $button_link = $product->get_permalink(); | |
| $button = '<a class="button" href="' . $button_link . '">' . $button_text . '</a>'; | |
| return $button; | |
| } |