WordPress Hooks to override the ‘Read More’ part of bubble
-
We are trying to use WordPress Hooks to override the ‘Read More’ link on our marker bubbles.
I’ve read this part of the documentation here: https://www.open-user-map.com/knowledge-base/change-or-extend-content-of-each-location-bubble/ and think I need to do something like this
add_filter('oum_location_bubble_content', function ( $content, $location ) { // Grab the Read More div ? // Replace it with the new href we want ? return $content; }, 10, 2);
Instead of just going to the location permalink, we want to add on an extra param to the ‘read more’ link (like so: https://liminal.earth/stories/the-devils-causeway/?markerid=7938. That markerid will zoom in the map to the selected marker, and show the full page of the location).
What’s the best way to grab the Read More div in that filter so we can override it? Or do we have to replace the entire content and build the bubble back up from scratch?
- The topic ‘WordPress Hooks to override the ‘Read More’ part of bubble’ is closed to new replies.