Function Reference: geodir_update_location_prefix
Summary
Updates the location page prefix when location page is saved
Package
GeoDirectory
Parameters
- int
- ($post_id) (required) $post_id The post ID of the post being saved.
- Default: None
- object
- ($post) (required) $post The post object of the post being saved.
- Default: None
Change Log
Since: 1.4.6
Source File
geodir_update_location_prefix() is located in geodirectory-admin/admin_hooks_actions.php [Line: 2345]
Source Code
function geodir_update_location_prefix($post_id,$post){ if($post->post_type=='page' && $post->post_name && $post_id==get_option('geodir_location_page')){ update_option('geodir_location_prefix',$post->post_name); } }