Support » Plugin: WP Car Manager » Modifying “Sold” sign

  • Resolved pacificmotors

    (@pacificmotors)


    I would like to be able to change the wording on the “SOLD” sign, but I am unable to locate where that function can be changed. Can someone help me out?

    For images with the sold sign I see the <div class="wpcm-sold">;

    And then under, wp-car-manager/includes/template-hooks.php:

    /**
     * Sold sign
     */
    add_action( 'wpcm_vehicle_listings_item_image_start', 'wpcm_template_sold_sign', 10, 1 );
    add_action( 'wpcm_vehicle_dashboard_item_image_start', 'wpcm_template_sold_sign', 10, 1 );
    add_action( 'wpcm_vehicle_thumbnails', 'wpcm_template_sold_sign', 15, 1 );

    And under, wp-car-manager/includes/template-functions.php:

    if ( ! function_exists( 'wpcm_template_sold_sign' ) ) {
    	function wpcm_template_sold_sign( $vehicle ) {
    		if ( $vehicle->is_sold() ) {
    			wp_car_manager()->service( 'template_manager' )->get_template_part( 'general/sold-sign' );
    		}
    	}
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modifying “Sold” sign’ is closed to new replies.