Created
October 24, 2017 16:25
-
-
Save propertyhive/d7c34e61e860e2bbed1fba5f60d468ec to your computer and use it in GitHub Desktop.
Customise Map Search views
This file contains 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
add_filter( 'propertyhive_results_views', 'custom_ph_views' ); | |
function custom_ph_views($views) | |
{ | |
$views = array( | |
'list' => array( | |
'default' => true, | |
'content' => 'LIST ICON HERE' | |
), | |
'map' => array( | |
'content' => 'MAP ICON HERE' | |
) | |
); | |
return $views; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment