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
| function dlm_dp_change_downloading_page_delay( $seconds ) { | |
| return 10; | |
| } | |
| add_filter( 'dlm_dp_automated_start_seconds', 'dlm_dp_change_downloading_page_delay' ); |
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 /** Place this in your-theme/wp-car-manager/listings/filters/ **/ ?> | |
| <div class="wpcm-filter wpcm-filter-color"> | |
| <label><?php _e( 'Color', 'wp-car-manager' ); ?></label> | |
| <select name="color" data-placeholder="<?php _e( 'All', 'wp-car-manager' ); ?>"> | |
| <option value="blue"><?php _e( 'Blue', 'wp-car-manager' ); ?></option> | |
| <option value="black"><?php _e( 'Black', 'wp-car-manager' ); ?></option> | |
| </select> | |
| </div> |
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
| function wpcm_custom_remove_fields( $fields ) { | |
| unset( $fields['frdate'] ); | |
| unset( $fields['condition'] ); | |
| return $fields; | |
| } | |
| add_filter( 'wpcm_single_vehicle_data_fields', 'wpcm_custom_remove_fields', 10, 1 ); | |
| function wpcm_custom_remove_summary_fields( $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
| add_filter( 'dlm_page_addon_get_category_args', function ( $arg ) { | |
| $arg['orderby'] = 'date'; | |
| $arg['order'] = 'DESC'; | |
| return $arg; | |
| } ); |
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 | |
| $vehicle_manager = new \Never5\WPCarManager\Vehicle\Manager(); | |
| $vehicles = $vehicle_manager->get_vehicles( array(), 'price-asc', - 1, array( | |
| 'meta_query' => array( | |
| array( | |
| 'key' => 'wpcm_sold', | |
| 'value' => '1', | |
| 'compare' => '=', | |
| 'type' => 'CHAR' | |
| ) |
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
| function dlm_add_custom_seconds_to_downloading_page( $seconds ) { | |
| return 15; | |
| } | |
| add_filter( 'dlm_dp_automated_start_seconds', 'dlm_add_custom_seconds_to_downloading_page' ); |
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_filter( 'dlm_as3_request_valid_minutes', function ( $minutes, $download, $version, $path ) { | |
| return 5; | |
| }, 10, 4 ); |
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 | |
| /** | |
| * Default output for a download via the [download] shortcode | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } // Exit if accessed directly | |
| /** @var DLM_Download $dlm_download */ |
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_action( 'woocommerce_checkout_create_order', function( $order ) { | |
| $order->set_customer_user_agent( "" ); | |
| } ); |
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_action( 'wpcm_listings_vehicle_filters', 'wpcm_template_vehicle_listings_filters_mileage', 15 ); |