mc_save_location - joedolson/my-calendar GitHub Wiki
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$resultsResult of database insertion. Row ID or false.array$addArray of location parameters to add.array$postPOST 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 )