Created
October 13, 2020 07:25
-
-
Save yousufansa/1c71b3e7fdfe84e03a385f9a591155be to your computer and use it in GitHub Desktop.
Vodi - Add Persons as Search Result Tab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( ! function_exists( 'vodi_child_include_persons_as_search_result_tab' ) ) { | |
| function vodi_child_include_persons_as_search_result_tab( $post_types ) { | |
| $post_types[] = 'person'; | |
| return $post_types; | |
| } | |
| } | |
| add_filter( 'vodi_display_search_result_page_tab_post_types', 'vodi_child_include_persons_as_search_result_tab' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment