Join our new community forum for support & discussion

Join Now

Home Support Extensions Opening Hours Remove “open now” from filter

Remove “open now” from filter

  • Author
    Posts
  • yourwp.site

    The “open now” option with the checkbox is useless for my case! However i can`t hide it it simple css because it has influence with other functions with checkboxex… How to remove “open now” from filter?
    Thank you

    yevhen developer

    Please try this PHP snippet

    add_filter(
    	'hivepress/v1/forms/listing_filter',
    	function( $form ) {
    		if ( isset( $form['fields']['_open'] ) ) {
    			unset($form['fields']['_open']);
    		}
    
    		return $form;
    	},
    	1000
    );
    yourwp.site

    Perfect, that is amazing! Thank you @yevhen

Viewing 3 posts - 1 through 3 (of 3 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.