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
/** | |
* wc_shipment_tracking_add_custom_provider | |
* | |
* Adds custom provider to shipment tracking | |
* Change the country name, the provider name, and the URL (it must include the %1$s) | |
* Add one provider per line | |
*/ | |
add_filter( 'wc_shipment_tracking_get_providers' , 'wc_shipment_tracking_better_hermes' ); |
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
.ratio-16-9, | |
.ratio-16-10, | |
.ratio-square { | |
display: block; | |
position: relative; | |
width: 100%; | |
height: 0; | |
} | |
.ratio-16-9 { |
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: WP OneSignal Push To App | |
Description: Sets the URL to app_url so that OneSignal WordPress Push Notifications open the app instead of phone browser. Disables Browser Notifications. | |
Version: 1.0 | |
Author: Con & Anna Schneider | |
Author URI: https://conschneider.de | |
*/ | |
// If this file is called directly, abort. |
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 | |
namespace Statamic\Addons\StartTax; | |
use Statamic\Extend\Filter; | |
class StartTaxFilter extends Filter | |
{ | |
/** | |
* This excludes entries that have a specific tag set. In this case 'Startseite'. |
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 | |
/** | |
* This class removes the default excerpt metabox | |
* and adds a new box with the wysiwyg editor capability | |
* @author etessore | |
*/ | |
class TinyMceExcerptCustomization{ | |
const textdomain = ''; | |
const custom_exceprt_slug = '_custom-excerpt'; |
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 | |
/* | |
Template Name: Bookings Person types list | |
*/ | |
?> | |
<?php get_header(); ?> | |
<?php | |
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
//output with add to cart button on product detail page | |
add_action( 'woocommerce_after_add_to_cart_form', 'custom_notice_for_backorders_allowed' ); | |
function custom_notice_for_backorders_allowed() | |
{ | |
//instantinate product object | |
global $product; | |
//check if backorders are allowed | |
if ( $product->backorders_allowed() ) |
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
add_filter( 'woocommerce_admin_disabled', '__return_true' ); |
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
SET NAMES utf8mb4; | |
SET FOREIGN_KEY_CHECKS = 0; | |
-- ---------------------------- | |
-- Table structure for wp_wc_admin_note_actions | |
-- INFO: This uses the prefix wp_ - change accordingly. | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `wp_wc_admin_note_actions`; | |
CREATE TABLE `wp_wc_admin_note_actions` ( | |
`action_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, |