Join our new community forum for support & discussion

Join Now

Home Support Themes ExpertHive Remove images from the listing submission form

Remove images from the listing submission form

  • Author
    Posts
  • Kim

    Hello.
    Can you tell me how to disable the image loading block for new ads and requests?

    —————————————————————————

    Привет.
    Подскажи как отключить блок с загрузкой картинок для новых объявлений и запросов?

    yevhen developer

    Please try this PHP snippet to delete images field from new request submit form

    add_filter(
    	'hivepress/v1/forms/request_submit',
    	function( $form ) {
    		unset($form['fields']['images']);
    
    		return $form;
    	}
    );

    Please try this PHP snippet to delete images field from new listing submit form

    add_filter(
    	'hivepress/v1/forms/listing_submit',
    	function( $form ) {
    		unset($form['fields']['images']);
    
    		return $form;
    	}
    );
    Kim

    разобрался. Спасибо, помогло!

    Kim

    how to do the same for changing the form of a new seller?

    yevhen developer

    If you mean the vendor registration form then please try this PHP snippet

    add_filter(
    	'hivepress/v1/forms/user_update_profile',
    	function( $form ) {
    		if(isset($form['fields']['image'])){
    			unset($form['fields']['image']);	
    		}
    
    		return $form;
    	}
    );
Viewing 5 posts - 1 through 5 (of 5 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.