• Resolved idee

    (@idee)


    Hi WP Lister,

    as mentioned in the title:
    Could we have a function to use custom featured image as Ebay thumbnail?
    This is an interseting feature I guess, as often it is recommendend/better to use different featured images for the different systems (woocommerce, ebay, google shopping …)

    Thanks

    idee

    • This topic was modified 1 year, 7 months ago by idee.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter idee

    (@idee)

    I tried to creat a filter + function:

    In the template I use:

    add_filter( "mae_product_main_image", "mae_goat_product_main_image", 10, 2 );
    
    function mae_goat_product_main_image( $mae_image_url ) {
        $mae_image_url  = 'https://domain.com/img.jpg';
        return $mae_image_url;
    }
    

    But struggle to find the correct place where I have to apply following to check if filter is set, and if so, overwrite native function

    $main_image = apply_filters( 'mae_product_main_image', $mae_image_url, $post_id );
    		if (!isset($main_image)){
    // use main function thumbnail image	
    
    		} else {
    // use my custom thumbnail image		
    }
    • This reply was modified 1 year, 7 months ago by idee.
    • This reply was modified 1 year, 7 months ago by idee.
    Plugin Support WP Lab Support

    (@wp-lab-support)

    Hi @idee

    I am sorry, but we only offer custom coded solutions to our pro users. If you are a pro user, reach out to us here: https://www.wplab.com/contact/ and be sure to provide the email you used to purchase pro.

    Kind regards,

    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Function to use custom featured image as Ebay thumbnail’ is closed to new replies.