Function Reference: geodir_add_claim_option_metabox

Summary

This function has not been documented yet.

Source Code

function geodir_add_claim_option_metabox(){
	
	global $post;
	
	$geodir_post_types = geodir_get_posttypes('array');
	$geodir_posttypes = array_keys($geodir_post_types);
	if( isset($post->post_type) && in_array($post->post_type,$geodir_posttypes) ):
	
		$geodir_posttype = $post->post_type;
		$post_typename = geodir_ucwords($geodir_post_types[$geodir_posttype]['labels']['singular_name']);
		
		add_meta_box( 'geodir_claim_listing_information', $post_typename.' Claim Settings', 'geodir_claim_listing_information', $geodir_posttype, 'side', 'high' );
	
	endif;
	
}