Function Reference: geodir_custom_post_type_args_modify
Summary
This function has not been documented yet.
Source File
geodir_custom_post_type_args_modify() is located in geodir_custom_posts/geodir_cp_hooks_actions.php [Line: 47]
Source Code
function geodir_custom_post_type_args_modify( $args ,$post_type) { if(isset($_REQUEST['geodir_save_post_type'])) { $custom_post_type = htmlentities(trim($_REQUEST['geodir_custom_post_type'])); $listing_slug = htmlentities(trim($_REQUEST['geodir_listing_slug'])); if($custom_post_type == 'place') update_option('geodir_listing_prefix', $listing_slug); if(strtolower($post_type) == strtolower($custom_post_type)) { if(array_key_exists('has_archive' ,$args )) $args['has_archive'] = $listing_slug ; if(array_key_exists('rewrite' ,$args )) { if(array_key_exists('slug' ,$args['rewrite'])) $args['rewrite']['slug'] = $listing_slug.'/%gd_taxonomy%' ; } } } return $args ; }