Closed rubengc closed 7 years ago
Adding a filter in cmb_post_search_ajax_get_results() to allow customize the text returned:
cmb_post_search_ajax_get_results()
while ( $results->have_posts() ) : $results->the_post(); $datas[] = apply_filters( 'mag_cmb_post_search_ajax_result', array( 'value' => get_the_title(), 'data' => get_the_ID(), 'guid' => get_edit_post_link() ) ); endwhile;
If you are ok with this i can PR this changes
Adding a filter in
cmb_post_search_ajax_get_results()
to allow customize the text returned:If you are ok with this i can PR this changes