This is a list of the SublimeText 2 addons I use for my development environment.
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 "Include in Rotator" option to media uploader | |
| * Limited to Home page | |
| * | |
| * @param $form_fields array, fields to include in attachment form | |
| * @param $post object, attachment record in database | |
| * @return $form_fields, modified form fields |
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 | |
| /** | |
| * Geocodes a postal code field from a gravity form, saves latitude and longitude to custom fields | |
| * To use this, change $entry[26] to the id of your gravity form field that contains the postal code - i.e. $entry[2] | |
| * To use this, change the name of the geo_latitude and geo_longitude custom fields to what you've created. | |
| * For bonus points, name your lat and long custom fields geo_latitude and geo_longitude, to be in line with Wordpress standard Geodata: https://codex.wordpress.org/Geodata | |
| * | |
| * | |
| */ |
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
| <block type="cms/block" name="block_name"> | |
| <action method="setBlockId"><id>block_code</id></action> | |
| </block> | |
| {{block type="cms/block" block_id="block_code"}} | |
| {{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}} |
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 Bookings Dropdown | |
| Description: Swaps the date picker for a dropdown of dates | |
| Version: 1.0.0 | |
| Author: Webby Scots | |
| Author URI: http://webbyscots.com/ | |
| */ | |
| $wswp_dates_built = false; | |
| add_filter('booking_form_fields','wswp_booking_form_fields'); |
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
| DELETE o FROM `wp_posts` o | |
| LEFT OUTER JOIN `wp_posts` r | |
| ON o.post_parent = r.ID | |
| WHERE r.id IS null AND o.post_type = 'product_variation' |
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
| // This example was used to pull in variant titles and IDs dynamically | |
| // on a custom build of the ReCharge customer portal. | |
| // | |
| // Feel free to send me an email if you have any questions. | |
| // | |
| // Kelly Vaughn -- The Taproom Agency | |
| // kelly@thetaproom.com | |
| // 1. Retrieve product ID in any format | |
| const productId = <pathToProductId>; |
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 | |
| /** | |
| * _s Theme Options | |
| * | |
| * @package _s | |
| * @since _s 1.0 | |
| */ | |
| /** | |
| * Register the form setting for our _s_options array. |
OlderNewer