Help with a function that will place a map pin for all posts

I have a custom post type called "properties". When I add a property on the admin side, I input an address and then click a button that says "Place Pin At Address". I have uploaded thousands of properties with addresses but I need to run the "Place pin at address" function on all of them. It is time consuming to go through every post and push the button and then publish.

I thought I could do something like:

add_action( 'publish_post', 'SetMapPointer' );

Unfortunately it's not working.

Topic map posts customization Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.