wp-advanced-search icon indicating copy to clipboard operation
wp-advanced-search copied to clipboard

Added events on form submit, reset and success

Open wearehyphen opened this issue 8 years ago • 2 comments

Added three events, accessible by external JS to allow for targeting added DOM elements returned by WPAS.

Events are: WPASSuccess,WPASReset,WPASSubmit

WPASSuccess and WPASReset returns the identifier for any items returned from the AJAX query, as defined in the __WPAS-object as ITEMS and ITEMS_NEW.

wearehyphen avatar Sep 06 '16 05:09 wearehyphen

Hello I want to add a custom meta box, how can I show the form?

mehmetsarr avatar May 11 '20 22:05 mehmetsarr

I added such a meta box. This time it gives the error "Warning: trim () expects parameter 1 to be string, array given in C: \ xampp \ htdocs \ projem2 \ wp-includes \ class-wp-meta-query.php on line 695".

        $args ['fields'][] = array('type' => 'meta_key',
		                                    'post_type'      => 'ilanlar',
		                                     'label' => 'İç Özellikler',
                                             'format' => 'checkbox',
                                             'meta_key' => 'menkul_ic_ozellikler',
											 'compare' => 'LIKE',
                                             'data_type' => 'ARRAY<CHAR>',
                                             'relation' => 'AND',
                                             'value' => array('celikkapi' => 'Çelik Kapı', 'amerikanmutfak' => 'Amerikan Mutfak' )
											 );	

mehmetsarr avatar May 12 '20 07:05 mehmetsarr