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 | |
| /* | |
| Localizations: | |
| - [Spanish](https://gist.github.com/MatthewEppelsheimer/1498955#gistcomment-3317461) props @chdgp | |
| UPDATED: 2020-03-09 |
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 | |
| /** | |
| * Transform 'tag=' (which expects slug) to 'tag_id=' in rewrite rules. | |
| */ | |
| add_filter( 'post_tag_rewrite_rules', function( $rewrite_rules ) { | |
| $processed_rules = array(); | |
| foreach ( $rewrite_rules as $match => $query ) { | |
| $processed_rules[ $match ] = str_replace( 'tag=', 'tag_id=', $query ); | |
| } |
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
| plugin | classic_percent_diff | gutenberg_percent_diff | gallery_link | |
|---|---|---|---|---|
| contact-form-7 | 0% | 0% | http://gutensnaps.handbuilt.co/index.php?plugin_name=contact-form-7 | |
| wordpress-seo | 2.923% | 0.82% | http://gutensnaps.handbuilt.co/index.php?plugin_name=wordpress-seo | |
| akismet | 0% | 0% | http://gutensnaps.handbuilt.co/index.php?plugin_name=akismet | |
| jetpack | 0% | 0% | http://gutensnaps.handbuilt.co/index.php?plugin_name=jetpack | |
| wordpress-importer | 0% | 0% | http://gutensnaps.handbuilt.co/index.php?plugin_name=wordpress-importer | |
| all-in-one-seo-pack | 4.657% | 0.72% | http://gutensnaps.handbuilt.co/index.php?plugin_name=all-in-one-seo-pack | |
| google-sitemap-generator | 0% | 0% | http://gutensnaps.handbuilt.co/index.php?plugin_name=google-sitemap-generator | |
| limit-login-attempts | 0% | 0% | http://gutensnaps.handbuilt.co/index.php?plugin_name=limit-login-attempts | |
| tinymce-advanced | 0.862% | 0% | http://gutensnaps.handbuilt.co/index.php?plugin_name=tinymce-advanced |
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
| language | english_name | native_name | |
|---|---|---|---|
| af | Afrikaans | Afrikaans | |
| ar | Arabic | العربية | |
| ary | Moroccan Arabic | العربية المغربية | |
| as | Assamese | অসমীয়া | |
| az | Azerbaijani | Azərbaycan dili | |
| azb | South Azerbaijani | گؤنئی آذربایجان | |
| bel | Belarusian | Беларуская мова | |
| bg_BG | Bulgarian | Български | |
| bn_BD | Bengali (Bangladesh) | বাংলা |
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 | |
| /** | |
| * Enqueue scripts and styles. | |
| * | |
| * @since 1.0.0 | |
| */ | |
| function ja_global_enqueues() { | |
| wp_enqueue_style( | |
| 'jquery-auto-complete', |
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
| http://www.benblanco.com/how-to-add-custom-product-tab-to-woocommerce-single-product-page/ | |
| http://www.remicorson.com/mastering-woocommerce-products-custom-fields/ | |
| // Display Fields | |
| add_action( 'woocommerce_product_options_general_product_data', __NAMESPACE__.'\woo_add_custom_general_fields' ); | |
| function woo_add_custom_general_fields() { | |
| global $woocommerce, $post; |
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 | |
| /** | |
| * Adding Custom Fiels to Products and Variations | |
| */ | |
| // Display Fields | |
| add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); | |
| function woo_add_custom_general_fields() { | |
| global $woocommerce, $post; | |
| echo '<div class="options_group">'; |
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 | |
| /** | |
| * Display Fields using WooCommerce Action Hook | |
| * | |
| * @ref http://www.remicorson.com/woocommerce-custom-fields-for-variations/ | |
| * @ref http://www.remicorson.com/mastering-woocommerce-products-custom-fields/ | |
| * @since 1.0.0 | |
| */ | |
| add_action( 'woocommerce_product_options_general_product_data', 'woocom_general_product_data_custom_field' ); |
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
| /* | |
| * Add our Custom Fields to simple products | |
| */ | |
| function mytheme_woo_add_custom_fields() { | |
| global $woocommerce, $post; | |
| echo '<div class="options_group">'; | |
| // Text Field |
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 | |
| /** | |
| * Custom Gravity Forms validation. Make sure the form isn't submitted with the default dropdown values | |
| * Useful for when your Gravity Form is displaying default values instead of the field labels. | |
| * | |
| * Tie our validation function to the 'gform_validation' hook. Since we've appended _1 to the filter name (gform_validation_1) | |
| * it will only trigger on form ID 1. Change this number if you want it to trigger on some other form ID. | |
| * There's no sense in running this function on every form submission, now is there! | |
| * |
NewerOlder