Skip to content

mc_save_location

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

Execute an action when a location is saved.

Auto-generated Example

add_filter(
   'mc_save_location',
    function(
        int|false $results,
        array $add,
        array $post
    ) {
        // Your code here.
        return $results;
    },
    10,
    3
);

Parameters

  • int|false $results Result of database insertion. Row ID or false.
  • array $add Array of location parameters to add.
  • array $post POST array.

Returns

int Before priority 10, returns the location ID; after priority 10 returns the location post ID. Sorry.

Files

apply_filters( 'mc_save_location', $insert_id, $add, $post )

← All Hooks

Clone this wiki locally