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
| // ************* Remove default Posts type since no blog ************* | |
| // Remove side menu | |
| add_action( 'admin_menu', 'remove_default_post_type' ); | |
| function remove_default_post_type() { | |
| remove_menu_page( 'edit.php' ); | |
| } | |
| // Remove +New post in top Admin Menu Bar |
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
| /** | |
| * Unhook and remove WooCommerce default emails. | |
| */ | |
| add_action( 'woocommerce_email', 'unhook_those_pesky_emails' ); | |
| function unhook_those_pesky_emails( $email_class ) { | |
| /** | |
| * Hooks for sending emails during store events | |
| **/ |
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
| /** | |
| * Custom currency and currency symbol | |
| */ | |
| add_filter( 'woocommerce_currencies', 'add_my_currency' ); | |
| function add_my_currency( $currencies ) { | |
| $currencies['ABC'] = __( 'Currency name', 'woocommerce' ); | |
| return $currencies; | |
| } |
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
| // Hook in | |
| add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); | |
| // Our hooked in function - $fields is passed via the filter! | |
| function custom_override_checkout_fields( $fields ) { | |
| $fields['shipping']['shipping_phone'] = array( | |
| 'label' => __('Phone', 'woocommerce'), | |
| 'placeholder' => _x('Phone', 'placeholder', 'woocommerce'), | |
| 'required' => false, | |
| 'class' => array('form-row-wide'), |
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
| sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app | |
| sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS | |
| sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs |
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
| //maps.googleapis.com | |
| //maps.gstatic.com | |
| //fonts.googleapis.com | |
| //fonts.gstatic.com | |
| //ajax.googleapis.com | |
| //apis.google.com | |
| //google-analytics.com | |
| //www.google-analytics.com | |
| //ssl.google-analytics.com | |
| //youtube.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
| <meta name="format-detection" content="telephone=no"> | |
| <meta name="format-detection" content="date=no"> | |
| <meta name="format-detection" content="address=no"> | |
| <meta name="format-detection" content="email=no"> |
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 | |
| add_filter( 'woocommerce_no_shipping_available_html', 'my_custom_no_shipping_message' ); | |
| add_filter( 'woocommerce_cart_no_shipping_available_html', 'my_custom_no_shipping_message' ); | |
| function my_custom_no_shipping_message( $message ) { | |
| return __( 'A minimum of 6 products is required. Add more products to complete your purchase' ); | |
| } |