/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_layout'
* */
if ( ! function_exists( 'stm_is_layout' ) ) {
function stm_is_layout( $layout_name ) {
return apply_filters( 'stm_is_layout', $layout_name );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_car_dealer'
* */
if ( ! function_exists( 'stm_is_car_dealer' ) ) {
function stm_is_car_dealer() {
return apply_filters( 'stm_is_car_dealer', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_ev_dealer'
* */
if ( ! function_exists( 'stm_is_ev_dealer' ) ) {
function stm_is_ev_dealer() {
return apply_filters( 'stm_is_ev_dealer', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing'
* */
if ( ! function_exists( 'stm_is_listing' ) ) {
function stm_is_listing() {
return apply_filters( 'stm_is_listing', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_two'
* */
if ( ! function_exists( 'stm_is_listing_two' ) ) {
function stm_is_listing_two() {
return apply_filters( 'stm_is_listing_two', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_three'
* */
if ( ! function_exists( 'stm_is_listing_three' ) ) {
function stm_is_listing_three() {
return apply_filters( 'stm_is_listing_three', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_four'
* */
if ( ! function_exists( 'stm_is_listing_four' ) ) {
function stm_is_listing_four() {
return apply_filters( 'stm_is_listing_four', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_five'
* */
if ( ! function_exists( 'stm_is_listing_five' ) ) {
function stm_is_listing_five() {
return apply_filters( 'stm_is_listing_five', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_six'
* */
if ( ! function_exists( 'stm_is_listing_six' ) ) {
function stm_is_listing_six() {
return apply_filters( 'stm_is_listing_six', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_three_elementor'
* */
if ( ! function_exists( 'stm_is_listing_three_elementor' ) ) {
function stm_is_listing_three_elementor() {
return apply_filters( 'stm_is_listing_three_elementor', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_boats'
* */
if ( ! function_exists( 'stm_is_boats' ) ) {
function stm_is_boats() {
return apply_filters( 'stm_is_boats', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_motorcycle'
* */
if ( ! function_exists( 'stm_is_motorcycle' ) ) {
function stm_is_motorcycle() {
return apply_filters( 'stm_is_motorcycle', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_rental'
* */
if ( ! function_exists( 'stm_is_rental' ) ) {
function stm_is_rental() {
return apply_filters( 'stm_is_rental', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_rental_two'
* */
if ( ! function_exists( 'stm_is_rental_two' ) ) {
function stm_is_rental_two() {
return apply_filters( 'stm_is_rental_two', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_magazine'
* */
if ( ! function_exists( 'stm_is_magazine' ) ) {
function stm_is_magazine() {
return apply_filters( 'stm_is_magazine', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_dealer_two'
* */
if ( ! function_exists( 'stm_is_dealer_two' ) ) {
function stm_is_dealer_two() {
return apply_filters( 'stm_is_dealer_two', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_elementor_dealer_two'
* */
if ( ! function_exists( 'stm_is_elementor_dealer_two' ) ) {
function stm_is_elementor_dealer_two() {
return apply_filters( 'stm_is_service', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_aircrafts'
* */
if ( ! function_exists( 'stm_is_aircrafts' ) ) {
function stm_is_aircrafts() {
return apply_filters( 'stm_is_aircrafts', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_auto_parts'
* */
if ( ! function_exists( 'stm_is_auto_parts' ) ) {
function stm_is_auto_parts() {
return apply_filters( 'stm_is_auto_parts', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_equipment'
* */
if ( ! function_exists( 'stm_is_equipment' ) ) {
function stm_is_equipment() {
return apply_filters( 'stm_is_equipment', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_service'
* */
if ( ! function_exists( 'stm_is_service' ) ) {
function stm_is_service() {
return apply_filters( 'stm_is_service', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_four_elementor'
* */
if ( ! function_exists( 'stm_is_listing_five_elementor' ) ) {
function stm_is_listing_five_elementor() {
return apply_filters( 'stm_is_listing_five_elementor', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'stm_is_listing_four_elementor'
* */
if ( ! function_exists( 'stm_is_listing_four_elementor' ) ) {
function stm_is_listing_four_elementor() {
return apply_filters( 'stm_is_listing_four_elementor', false );
}
}
/***
* @Moved to plugins/stm-motors-extends/inc/layout-checker.php
* use filter 'is_listing'
* */
if ( ! function_exists( 'is_listing' ) ) {
function is_listing( $only = array() ) {
return apply_filters( 'is_listing', $only );
}
}
/**
* @deprecated since 5.4.23
* use filter 'stm_me_wpcfto_parse_spacing'
*/
if ( ! function_exists( 'stm_me_motors_wpcfto_parse_spacing' ) ) {
function stm_me_motors_wpcfto_parse_spacing( $settings ) {
if ( empty( $settings ) ) {
return '';
}
$style = ( ! empty( $settings['top'] ) ) ? 'margin-top: ' . $settings['top'] . 'px; ' : '';
$style .= ( ! empty( $settings['right'] ) ) ? 'margin-right: ' . $settings['right'] . 'px; ' : '';
$style .= ( ! empty( $settings['bottom'] ) ) ? 'margin-bottom: ' . $settings['bottom'] . 'px; ' : '';
$style .= ( ! empty( $settings['left'] ) ) ? 'margin-left: ' . $settings['left'] . 'px; ' : '';
return $style;
}
}
/***
* @Moved to plugins/stm_vehicle_listing/includes/functions.php
* use filter 'stm_enable_location'
* */
if ( ! function_exists( 'stm_enable_location' ) ) {
function stm_enable_location() {
return apply_filters( 'stm_enable_location', false );
}
}
/***
* will be remove from theme since 5.4.23
* */
if ( ! function_exists( 'stm_listing_price_view' ) ) {
function stm_listing_price_view( $price ) {
return apply_filters( 'stm_filter_price_view', '', $price );
}
}
/**
* @deprecated since 5.4.23
*/
if ( ! function_exists( 'stm_do_lmth' ) ) {
function stm_do_lmth( $text ) {
return $text;
}
}
/**
* @deprecated since 5.4.23
* use filter 'stm_dynamic_string_translation'
*/
if ( ! function_exists( 'stm_dynamic_string_translation_e' ) ) {
function stm_dynamic_string_translation_e( $text, $desc ) {
echo wp_kses_post( apply_filters( 'stm_dynamic_string_translation', $text, $desc ) );
}
}
/**
* @deprecated since 5.4.23
* use filter 'stm_me_get_wpcfto_img_src'
*/
if ( ! function_exists( 'stm_me_get_wpcfto_img_src' ) ) {
function stm_me_get_wpcfto_img_src( $opt_name, $default, $size = 'full' ) {
return apply_filters( 'stm_me_get_nuxy_img_src', $default, $opt_name, $size );
}
}
/**
* @deprecated since 5.4.23
*/
if ( ! function_exists( 'stm_enablePPL' ) ) {
function stm_enablePPL() {
return apply_filters( 'motors_vl_get_nuxy_mod', false, 'dealer_pay_per_listing' );
}
}
if ( ! function_exists( 'stm_me_get_wpcfto_mod' ) ) {
function stm_me_get_wpcfto_mod( $key, $default = '' ) {
return apply_filters( 'motors_vl_get_nuxy_mod', $default, $key );
}
}
/**
* will be remove from theme since 5.4.23
*/
if ( ! function_exists( 'stm_listings_post_type' ) ) {
function stm_listings_post_type() {
return apply_filters( 'stm_listings_post_type', 'listings' );
}
}
/***
* @depreacted filter in motors-extends plugin since 2.0.7
* filter 'stm_me_get_wpcfto_mod' is deprecated
* use filter 'motors_vl_get_nuxy_mod' instead
**/
/***
* @depreacted filter in stm-motors-extends plugin since 2.0.7
* filter 'stm_me_get_wpcfto_img_src' is deprecated
* use filter 'stm_me_get_nuxy_img_src' instead
**/
/***
* @depreacted function in stm_vehicle_listings since 7.0.9
* function 'stm_get_all_by_slug' and filter 'stm_get_all_by_slug' is deprecated
* use filter 'stm_vl_get_all_by_slug' instead
**/
Carmarket – Information You Want