Open cvl01 opened 3 years ago
Please, describe the feature request, making it clear to understand.
I would like to be able to customize the label of the options in the posts field type in jetengine.
Currently, the dropdown shows the post title. Can you add a filter to allow developers to modify this?
My suggestion, in includes/classes/post-search.php on line 59, add the following:
includes/classes/post-search.php
59
if (!empty($posts)) { foreach ($posts as $post) { $result[] = array( 'id' => $post->ID, 'text' => apply_filters('jet_engine_posts_search_title', $post->post_title, $post), ); } }
@kaskad88?
Please, describe the feature request, making it clear to understand.
I would like to be able to customize the label of the options in the posts field type in jetengine.
Currently, the dropdown shows the post title. Can you add a filter to allow developers to modify this?
My suggestion, in
includes/classes/post-search.php
on line59
, add the following: