<Hello Developers />
We’ve started to put together some information we think other developer’s might find useful.
To be honest, our developer documentation is most certainly “in the works”. This page has a list of PHP Filters and constants you can use to tweak things how you like. Right now there’s no information on the parameters or even what they do.
We could use your help making sure we focus on making the right information available and sample code for the most important pieces.
Can you take a moment and fill out the contact form on the bottom of the page and let us know what things would you like more information on? THANKS!
PHP Filters
This is a list of the filters available in WPSuperDealer.
If you are a developer and have questions on specific filters then let us know.
There is also a list of constants below the filters. They can be defined in your wp-config.php file to provide a variety of customizations.
wp-content\plugins\wp-super-dealer\admin\wpsd-admin-handler.php
$types = apply_filters( 'wpsd_types_filter', $types );
wp-content\plugins\wp-super-dealer\admin\wpsd-save-vehicle.php
$post_excerpt = apply_filters( 'wpsd_post_excerpt', $post_excerpt, $post );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-general-settings-tab.php
$html = apply_filters( 'wpsd_admin_general_settings_filter', $html );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$table = apply_filters( 'wpsd_location_table_header_filter', $table );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$data = apply_filters( 'wpsd_location_table_data_filter', $data );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$fields = apply_filters( 'wpsd_location_form_fields_html_filter', $fields, 'address', $location );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$fields = apply_filters( 'wpsd_location_form_fields_html_filter', $fields, WPSD_POST_TYPE, $location );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$fields = apply_filters( 'wpsd_location_form_fields_html_filter', $fields, 'contact', $location );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$fields = apply_filters( 'wpsd_location_form_fields_html_filter', $fields, 'links', $location );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$args = apply_filters( 'wpsd_save_location_args_filter', $args );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-locations-tab.php
$fields = apply_filters( 'wpsd_location_fields_filter', $fields );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-price-tab.php
$html = apply_filters( 'wpsd_admin_price_filter', $html );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-price-tab.php
$fields = apply_filters( 'wpsd_admin_price_fields_filter', $fields );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-search-form-tab.php
$html = apply_filters( 'wpsd_admin_search_filter', $html );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-setup-guide-tab.php
$html = apply_filters( 'wpsd_admin_setup_guide_filter', $html );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-vehicle-options-tab.php
$html = apply_filters( 'wpsd_admin_options_filter', $html );
wp-content\plugins\wp-super-dealer\admin\tabs\wpsd-welcome-tab.php
$html = apply_filters( 'wpsd_admin_welcome_filter', $html );
wp-content\plugins\wp-super-dealer\admin\vehicle-edit\wpsd-manage-photos.php
$thumbnails = apply_filters( 'wpsd_get_thumbnails', $thumbnails, $post_id, 'linked' );
wp-content\plugins\wp-super-dealer\admin\vehicle-edit\wpsd-manage-photos.php
$thumbnails = apply_filters( 'wpsd_get_thumbnails', $thumbnails, $post_id, 'media' );
wp-content\plugins\wp-super-dealer\admin\vehicle-edit\wpsd-meta-boxes.php
$global_specs_title = apply_filters( 'global_specs_title_filter', $global_specs_title, $post_id );
wp-content\plugins\wp-super-dealer\admin\vehicle-edit\wpsd-meta-boxes.php
$no_vehicle_comments = apply_filters( 'no_vehicle_comments_filter', $no_vehicle_comments );
wp-content\plugins\wp-super-dealer\admin\vehicle-types\vehicle-defaults.php
$map = apply_filters( 'vehicle_options_map_filter', $map );
wp-content\plugins\wp-super-dealer\admin\vehicle-types\vehicle-type-maps.php
$types = apply_filters( 'wpsd_types_filter', $types );
wp-content\plugins\wp-super-dealer\admin\vehicle-types\vehicle-type-maps.php
$global_fields = apply_filters( 'wpsd_global_fields_filter', $global_fields );
wp-content\plugins\wp-super-dealer\classes\class-wpsd-fields.php
$field_html = apply_filters( 'wpsd_custom_field_type_filter', $field_html, $field_key, $field_data );
wp-content\plugins\wp-super-dealer\how-to\add-admin-tab.php
$html = apply_filters( 'wpsd_my_settings_filter', $html );
wp-content\plugins\wp-super-dealer\includes\create-post-types-tax.php
$wpsd_supports = apply_filters( 'wpsd_supports_filter', $wpsd_supports );
wp-content\plugins\wp-super-dealer\includes\create-post-types-tax.php
$atts = apply_filters( 'wpsd_post_type_atts_filter', $atts );
wp-content\plugins\wp-super-dealer\includes\create-post-types-tax.php
$plural = apply_filters( 'wpsd_single_to_plural_filter', $plural, $string );
wp-content\plugins\wp-super-dealer\includes\vehicle-price.php
$fields = apply_filters( 'wpsd_price_fields_filter', $fields );
wp-content\plugins\wp-super-dealer\includes\vehicle-price.php
$price = apply_filters( 'wpsd_price_format', $price );
wp-content\plugins\wp-super-dealer\includes\wpsd-page-navi.php
$x = apply_filters( 'wpsd_nav_filter', $x, $position, $search_query );
wp-content\plugins\wp-super-dealer\includes\wpsd-page-navi.php
$html = apply_filters( 'wpsd_page_navi_filter', $html, $query );
wp-content\plugins\wp-super-dealer\includes\wpsd-query.php
$vehicle_query = apply_filters( 'wpsd_query_filter', $vehicle_query );
wp-content\plugins\wp-super-dealer\includes\wpsd-query.php
$vehicle_query = apply_filters( 'wpsd_query_filter', $vehicle_query );
wp-content\plugins\wp-super-dealer\includes\wpsd-scripts-styles.php
$loader = apply_filters( 'wpsd_load_more_filter', $loader );
wp-content\plugins\wp-super-dealer\includes\wpsd-template.php
$vehicle_title = apply_filters( 'wpsd_title_filter', $vehicle_title, $post_id );
wp-content\plugins\wp-super-dealer\includes\wpsd-template.php
$html = apply_filters( 'wpsd_no_results_filter', $html );
wp-content\plugins\wp-super-dealer\includes\wpsd-template.php
$content = apply_filters( 'the_content', $content );
wp-content\plugins\wp-super-dealer\includes\wpsd-template.php
$main_photo = apply_filters( 'wpsd_main_photo_url_filter', $main_photo, $post_id, $type );
wp-content\plugins\wp-super-dealer\includes\wpsd-template.php
$thumbnails = apply_filters( 'wpsd_get_thumbnails', $thumbnails, $post_id, 'media' );
wp-content\plugins\wp-super-dealer\includes\wpsd-template.php
$thumbnails = apply_filters( 'wpsd_get_thumbnails', $thumbnails, $post_id, 'linked' );
wp-content\plugins\wp-super-dealer\includes\wpsd-template.php
$vehicle = apply_filters( 'wpsd_get_vehicle_filter', $vehicle, $post_id );
wp-content\plugins\wp-super-dealer\search\search.php
$field_labels = apply_filters( 'wpsdsp_field_labels_filter', $field_labels );
wp-content\plugins\wp-super-dealer\search\search.php
$loading_inventory = apply_filters( 'wpsdsp_loading_inventory_filter', $loading_inventory );
wp-content\plugins\wp-super-dealer\search\search.php
'jsonurl' => apply_filters( 'wpsd_json_url_filter', trailingslashit( $json_url ) . 'search-json' . $blog_id . '.txt' ),
wp-content\plugins\wp-super-dealer\search\includes\search-form.php
$field_array = apply_filters( 'wpsdsp_field_array_filter', $field_array );
wp-content\plugins\wp-super-dealer\search\includes\search-form.php
$field_map = apply_filters( 'wpsdsp_field_map_filter', $field_map, $field_array );
wp-content\plugins\wp-super-dealer\search\includes\search-form.php
$fields_html = apply_filters( 'wpsdsp_fields_html_filter', $fields_html );
wp-content\plugins\wp-super-dealer\search\includes\widget.php
$title = apply_filters('widget_title', $instance['title'] );
wp-content\plugins\wp-super-dealer\search\includes\wpsdsp-fields.php
$fields = apply_filters( 'wpsdsp_active_fields_filter', $fields );
wp-content\plugins\wp-super-dealer\search\includes\wpsdsp-import.php
//$vehicle_report = apply_filters( 'wpsd_import_report_hook', $vehicle_report, $cdii_settings );
wp-content\plugins\wp-super-dealer\search\includes\wpsdsp-searched-by.php
$searched = apply_filters( 'wpsd_searched_by_filter', $searched, $result_page );
wp-content\plugins\wp-super-dealer\search\includes\wpsdsp-searched-by.php
$searched = apply_filters( 'wpsd_searched_by_filter_item', $searched, $field, $remove_url, $value, $selected_item, $type );
wp-content\plugins\wp-super-dealer\shortcodes\wpsd-inventory.php
$html .= apply_filters( 'wpsd_results_found_filter', $results_found, $total_results );
wp-content\plugins\wp-super-dealer\shortcodes\wpsd-inventory.php
$x = apply_filters( 'wpsd_switch_styles_filter', $x, $active );
wp-content\plugins\wp-super-dealer\sort\includes\wpsdsort-form.php
$sort_form = apply_filters( 'wpsd_sort_filter', $sort_form );
wp-content\plugins\wp-super-dealer\sort\includes\wpsdsort-items.php
$items = apply_filters( 'wpsdsort_filters', $items );
wp-content\plugins\wp-super-dealer\templates\srp-item.php
$x = apply_filters( 'wpsd_srp_filter', $x, $post_id, $atts );
wp-content\plugins\wp-super-dealer\templates\srp-item.php
$srp_item_css_class = apply_filters( 'srp_item_css_class_filter', $srp_item_css_class, $post_id, $atts );
wp-content\plugins\wp-super-dealer\templates\srp-item.php
$x = apply_filters( 'wpsd_srp_item_filter', $x, $post_id, $atts );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$html = apply_filters( 'wpsd_vdp_filter', '', $post_id );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$html .= apply_filters( 'vdp_before_main_image_filter', '', $post_id );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$html .= apply_filters( 'vdp_after_main_image_filter', '', $post_id );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$summary_specs = apply_filters( 'vdp_summary_specs_filter', $summary_specs );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$report = apply_filters( 'wpsd_market_value_filter', $report, $post_id, $market_value );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$report = apply_filters( 'wpsd_ownership_cost_filter', $report, $post_id, $ownership_cost );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$report = apply_filters( 'wpsd_history_report_filter', $report, $post_id, $history_report );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$html = apply_filters( 'wpsd_vdp_default_filter', $html, $post_id );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$global_specs_title = apply_filters( 'global_specs_title_filter', $global_specs_title, $post_id );
wp-content\plugins\wp-super-dealer\templates\vdp-item.php
$html = apply_filters( 'vdp_location_filter', $html, $location );
wp-content\plugins\wp-super-dealer\theme-files\archive-vehicles.php
$html = apply_filters('wpsd_srp_filter', wpsd_srp_item($post_id), $post_id, array() );
wp-content\plugins\wp-super-dealer\theme-files\search.php
$html = apply_filters('wpsd_srp_filter', wpsd_srp_item($post_id), $post_id, array() );
wp-content\plugins\wp-super-dealer\theme-files\single-vehicles.php
$html = apply_filters( 'wpsd_vdp_filter', wpsd_vdp_item( $post_id ), $post_id );
Constants for your wp-config.php file
define( 'WPSD_POST_TYPE', 'vehicle' );
define( 'WPSD_ADMIN_CAP', 'manage_options' );
define( 'WPSD_SSL_VERIFYPEER', true );
define( 'WPSD_IMPORT_SAMPLE_PHOTOS', true);
define( 'WPSD_HISTORY_REFILL', 10 );
define( 'WPSD_MARKET_REFILL', 10 );
define( 'WPSD_OWNERSHIP_REFILL', 10 );
define( 'WPSD_DECODE_REFILL', 10 );
define( 'WPSDSP_NO_COOKIE_SEARCH', true );