Skip to content

mc_create_location_post

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Executed an action when a location post is created.

Auto-generated Example

add_action(
   'mc_create_location_post',
    function(
        int $post_id,
        array $post,
        array $data,
        int $location_id
    ) {
        // Your code here.
    },
    10,
    4
);

Parameters

  • int $post_id Post ID.
  • array $post POST Array of data sent to create post.
  • array $data Data for this location.
  • int $location_id Location ID.

Files

do_action( 'mc_create_location_post', $post_id, $post, $data, $location_id )

← All Hooks

Clone this wiki locally