One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <?php | |
| new theme_customizer(); | |
| class theme_customizer { | |
| public function __construct() { | |
| add_action( 'customize_register', array(&$this, 'customize_linje' )); | |
| } | |
| /** | |
| * Customizer manager demo |
| /** | |
| * Auto Complete all WooCommerce orders. | |
| */ | |
| add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' ); | |
| function custom_woocommerce_auto_complete_order( $order_id ) { | |
| if ( ! $order_id ) { | |
| return; | |
| } | |
| $order = wc_get_order( $order_id ); |
| <?php | |
| // set up show expired = false | |
| $where = array( | |
| 'Datetime.DTT_EVT_end' => array( '>=', current_time( 'mysql' )), | |
| 'status' => 'publish', | |
| ); | |
| // run the query | |
| if ( class_exists( 'EE_Registry' ) ) : | |
| $events = EE_Registry::instance()->load_model( 'Event' )->get_all( array( | |
| $where, |
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)This is an addendum to the steps for setting up sample templates tutorial for Event Espresso 4:
https://gist.github.com/lorenzocaum/16aac08f099d7c154f04
In this article, we'll go over how different templates work together. Afterwards, you should feel comfortable with locating the template file(s) that you need to edit to make a customization to an events page or venues page in Event Espresso 4.
Sample templates for Event Espresso 4 are available here:
/wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014
| Doesn't seem to work anymore | |
| $("a").filter(function(index){return $(this).text()==="unsave"}).click(); | |
| New | |
| document.querySelectorAll("a").forEach(function(index,other){if(index.text==="unsave"){index.click();}}); |
| -- AppleScript to create a new file in Finder | |
| -- | |
| -- Use it in Automator, with the following configuration: | |
| -- - Service receives: no input | |
| -- - In: Finder.app | |
| -- | |
| -- References: | |
| -- - http://apple.stackexchange.com/a/129702 | |
| -- - http://stackoverflow.com/a/6125252/2530295 | |
| -- - http://www.russellbeattie.com/blog/fun-with-the-os-x-finder-and-applescript |
| <?php // ONLY COPY THIS LINE IF NEEDED! | |
| /** | |
| * Adds the ability to sort products in the shop based on the SKU | |
| * Can be combined with tips here to display the SKU on the shop page: https://www.skyverge.com/blog/add-information-to-woocommerce-shop-page/ | |
| * | |
| * @param array $args the sorting args | |
| * @return array updated args | |
| */ | |
| function sv_add_sku_sorting( $args ) { |