Created
February 5, 2026 12:02
-
-
Save propertyhive/f2304c211251e40a609da5b9ef5db308 to your computer and use it in GitHub Desktop.
Force virtual tour button label
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
| add_filter( | |
| 'propertyhive_single_property_virtual_tours_actions', | |
| 'force_virtual_tour_label' | |
| ); | |
| function force_virtual_tour_label( $actions ) { | |
| if ( empty( $actions ) || ! is_array( $actions ) ) { | |
| return $actions; | |
| } | |
| foreach ( $actions as &$action ) { | |
| if ( isset( $action['label'] ) ) { | |
| $action['label'] = __( 'Video Tour', 'propertyhive' ); | |
| } | |
| } | |
| return $actions; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment