Function Reference: geodir_cpt_manage_available_fields
Summary
Add an action hook for disable location post type.
Parameters
- $sub_tab
- (string) (required) Current sub tab.
- Default: None
Change Log
Since: 1.1.7
Source File
geodir_cpt_manage_available_fields() is located in geodir_custom_posts/geodir_cp_functions.php [Line: 1492]
Source Code
function geodir_cpt_manage_available_fields( $sub_tab = '' ) { if ( !empty( $_REQUEST['listing_type'] ) && geodir_cpt_no_location( $_REQUEST['listing_type'] ) ) { add_action( 'admin_footer', 'geodir_cpt_admin_no_location_js' ); } }