apply_filters( 'invp_prefix_meta_key' )
Determine if this meta field should be sorted as a number 1. Parse out the meta key name from $pieces[‘where’] 2. Run it through INVP::meta_value_is_number
Source #Source
File: inventory-presser.php
Related #Related
Used By #Used By
Used By | Description |
---|---|
includes/class-rest.php: Inventory_Presser_REST::allow_orderby_photo_number() |
Adds the photo_number meta field to the allowed orderby values. |
includes/class-rest.php: Inventory_Presser_REST::orderby_photo_number() |
Changes the query args for requests to order attachments by the photo_number meta key. |
includes/class-rest.php: Inventory_Presser_REST::order_attachments() | |
includes/class-invp.php: INVP::load_sample_vehicles() |
Populates the site with vehicles. |
includes/template-tags.php: invp_get_the_photos() |
invp_get_the_photos |
includes/integrations/class-contact-form-7.php: Inventory_Presser_Contact_Form_7::extract_post_id_from_value() | |
includes/integrations/class-contact-form-7.php: Inventory_Presser_Contact_Form_7::handler_vehicle() | |
includes/admin/class-admin-photo-arranger.php: Inventory_Presser_Admin_Photo_Arranger::maintain_gallery_during_attach_and_detach() |
maintain_gallery_during_attach_and_detach |
includes/shortcode/class-shortcode-sort-by.php: Inventory_Presser_Shortcode_Sort_By::change_price_field_when_sorting() |
If a user wants to order vehicles by price, and the site is showing MSRP instead of price, sort by that. |
includes/shortcode/class-shortcode-sort-by.php: Inventory_Presser_Shortcode_Sort_By::change_sorter_based_on_price_display() |
change_sorter_based_on_price_display |
includes/integrations/class-wp-all-import.php: Inventory_Presser_WP_All_Import::detect_piped_options() |
detect_piped_options |
includes/admin/class-admin-options.php: Inventory_Presser_Admin_Options::html_select_vehicle_keys() |
Get a list of all the post meta keys in our CPT. Let the user choose one as a default sort. |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::populate_columns_we_added_to_vehicles_table() |
populate_columns_we_added_to_vehicles_table |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::save_vehicle_post_meta() |
save_vehicle_post_meta |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::save_vehicle_taxonomy_terms() |
save_vehicle_taxonomy_terms |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::vehicles_table_columns_orderbys() |
vehicles_table_columns_orderbys |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::enable_order_by_attachment_count() |
enable_order_by_attachment_count |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::make_vehicles_table_columns_sortable() |
make_vehicles_table_columns_sortable |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::meta_box_html_featured() |
meta_box_html_featured |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::meta_box_html_prices() |
meta_box_html_prices |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::meta_box_html_vehicle() |
meta_box_html_vehicle |
includes/admin/class-admin-customize-dashboard.php: Inventory_Presser_Admin_Customize_Dashboard::add_columns_to_vehicles_table() |
add_columns_to_vehicles_table |
includes/widget/class-widget-order-by.php: Inventory_Presser_Order_By_Widget::get_post_meta_keys_and_labels() |
get_post_meta_keys_and_labels |
includes/widget/class-widget-order-by.php: Inventory_Presser_Order_By_Widget::update() |
update |
includes/class-photo-numberer.php: Inventory_Presser_Photo_Numberer::renumber_photos() |
renumber_photos |
includes/class-photo-numberer.php: Inventory_Presser_Photo_Numberer::save_meta_hash() |
save_meta_hash |
includes/class-photo-numberer.php: Inventory_Presser_Photo_Numberer::save_meta_photo_number() |
save_meta_photo_number |
includes/class-photo-numberer.php: Inventory_Presser_Photo_Numberer::save_meta_vin() |
save_meta_vin |
includes/class-taxonomy-overlapper.php: Inventory_Presser_Taxonomy_Overlapper::check_for_remaining_term_relationship() |
check_for_remaining_term_relationship |
includes/class-taxonomy-overlapper.php: Inventory_Presser_Taxonomy_Overlapper::delete_transmission_speeds_meta() |
delete_transmission_speeds_meta |
includes/class-taxonomy-overlapper.php: Inventory_Presser_Taxonomy_Overlapper::update_transmission_speeds_meta() |
update_transmission_speeds_meta |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_colors() |
meta_box_html_colors |
includes/class-invp.php: INVP::delete_attachment_orphans() | |
includes/shortcode/class-shortcode-inventory-slider.php: Inventory_Presser_Shortcode_Slider::get_vehicle_IDs() | |
includes/shortcode/class-shortcode-archive.php: Inventory_Presser_Shortcode_Archive::content() |
content |
includes/class-invp.php: INVP::get_meta() |
get_meta |
includes/class-invp.php: INVP::meta_value_is_number() |
meta_value_is_number |
inventory-presser.php: Inventory_Presser_Plugin::modify_query_for_max_price() |
Modifies the $query to filter vehicles by prices for the Maximum Price Filter widget. |
inventory-presser.php: Inventory_Presser_Plugin::register_meta_fields() |
Registers all meta fields our custom post type uses to define a vehicle and its attachments. |
inventory-presser.php: Inventory_Presser_Plugin::add_orderby_to_query() |
Filter callback that adds an ORDER BY clause to the main query when a user requests a list of vehicles. |
includes/class-vehicle-urls-by-vin.php: Vehicle_URLs_By_VIN::find_vehicle_url() |
find_vehicle_url |
includes/class-taxonomy-overlapper.php: Inventory_Presser_Taxonomy_Overlapper::term_relationship_deleted() |
term_relationship_deleted |
includes/class-taxonomy-overlapper.php: Inventory_Presser_Taxonomy_Overlapper::term_relationship_updated() |
term_relationship_updated |
includes/widget/class-widget-inventory-grid.php: Inventory_Presser_Grid::content() |
Creates HTML that renders the widget front-end. |
includes/widget/class-widget-inventory-slider.php: Inventory_Presser_Slider::widget() |
widget |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_drive_type() |
meta_box_html_drive_type |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_fuel() |
meta_box_html_fuel |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_propulsion_type() |
meta_box_html_propulsion_type |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_transmission() |
meta_box_html_transmission |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_type() |
meta_box_html_type |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_locations() |
meta_box_html_locations |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_condition() |
meta_box_html_condition |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_cylinders() |
meta_box_html_cylinders |
includes/class-taxonomies.php: Inventory_Presser_Taxonomies::meta_box_html_availability() |
meta_box_html_availability |
includes/class-additional-listings-pages.php: Inventory_Presser_Additional_Listings_Pages::get_query_meta_array() |
Turns additional listing page rules into SQL query pieces. |
includes/class-additional-listings-pages.php: Inventory_Presser_Additional_Listings_Pages::is_valid_rule() |
True or false, a given additional listing page rule has settings that allow us to create the page. User might not provide the URL path, for example. |
includes/widget/class-widget-maximum-price-filter.php: Inventory_Presser_Maximum_Price_Filter::widget() |
Outputs the widget front-end HTML |