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 | |
| function rf_wc_csv_add_query_args( $query_args) { | |
| $query_args = array( | |
| 'orderby' => 'date_query', | |
| 'order' => 'ASC', | |
| ); | |
| return $query_args; | |
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 | |
| function basext_bookings_query( $query ) { | |
| if (!is_admin()){ | |
| if(isset($_REQUEST['checkin_date'])) { | |
| $from_date = $_REQUEST['checkin_date']; | |
| $from_date = date("Y-m-d", strtotime($from_date)); | |
| } | |
| if(isset($_REQUEST['checkout_date'])) { | |
| $to_date = $_REQUEST['checkout_date']; |
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
| <? | |
| /* RAY FLORES ADD STYLESHEET */ | |
| function standalone() { | |
| $xml_standalone = 'yes' . '"?><?xml-stylesheet type="text/xsl" href="name-of-stylesheet.xslt"'; | |
| return $xml_standalone;//false; | |
| } | |
| add_filter( 'wc_customer_order_xml_export_suite_xml_standalone', 'standalone' ); | |
| /* output | |
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?><?xml-stylesheet type="text/xsl" href="name-of-stylesheet.xslt"?> |
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 Modify CSV Exported file | |
| * Description: Adds and removes desired and undesired fields respectively | |
| * Version: 1.0.0 | |
| * Author: Ray Flores | |
| * Author URI: http://www.rayflores.com | |
| * Requires at least: 3.9 | |
| * Tested up to: 3.9 | |
| * |
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 | |
| $args = array( | |
| 'post_type' => 'product', | |
| 'meta_key' => '_limited_dates_to', | |
| 'orderby' => 'meta_value', | |
| 'order' => 'DESC', | |
| 'meta_query' => array( | |
| array( | |
| 'key' => '_limited', | |
| 'value' => 'yes', |
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 | |
| * Returns all the orders made by the user | |
| * | |
| * @param int $user_id | |
| * @param string $status (completed|processing|canceled|on-hold etc) | |
| * @return array of order ids | |
| */ | |
| function get_all_user_orders($user_id,$status='completed'){ | |
| if(!$user_id) | |
| return false; |
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 | |
| function taxonomy_dropdowns_box( ) { | |
| $brand_taxonomy = 'pa_marcas'; | |
| $taxonomy_name = 'MARCAS'; | |
| wp_nonce_field('custom-dropdown', 'dropdown-nonce'); | |
| $terms = get_terms( $brand_taxonomy, 'hide_empty=0'); | |
| foreach ($terms as $term) { | |
| $all_terms[] = $term->term_id; |
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 Modify CSV output | |
| * Plugin URI: http://rayflores.com/plugins/csv-modifier/ | |
| * Description: Dan Colucci modifier | |
| * Version: 1.0.1 | |
| * Author: Ray Flores | |
| * Author URI: http://rayflores.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
| <?php | |
| /** | |
| * Theme: Flat Bootstrap | |
| * | |
| * Template Name: ACF Lathes | |
| * | |
| * This is the most generic template file in a WordPress theme | |
| * and one of the two required files for a theme (the other being style.css). | |
| * It is used to display a page when nothing more specific matches a query. | |
| * E.g., it puts together the home page when no home.php file exists. |
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: Pinit Only On Selected Media | |
| * Plugin URI: http://www.rayflores.com/plugins/pinit-onlyon/ | |
| * Version: 1.0 | |
| * Author: Ray Flores | |
| * Author URI: http://www.rayflores.com | |
| * Description: Adds ability to select media attachments to be unpinned. | |
| * Requires at least: 4.0 | |
| * Tested up to: 4.1 |