Function Reference: geodir_fix_for_primer_theme
Summary
This function has not been documented yet.
Source File
geodir_fix_for_primer_theme() is located in geodirectory-admin/admin_functions.php [Line: 6351]
Source Code
function geodir_fix_for_primer_theme(){ if(!defined( 'PRIMER_VERSION' )){return;} global $pagenow; if ( ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) && (isset($_REQUEST['post_type']) || isset($_REQUEST['post']) ) ){ $post_type = isset($_REQUEST['post_type']) ? esc_attr($_REQUEST['post_type']) : get_post_type( $_GET['post'] ); $post_types = geodir_get_posttypes(); if ($post_type && in_array($post_type, $post_types) ) { global $primer_customizer_layouts; remove_action( 'add_meta_boxes', array( $primer_customizer_layouts, 'add_meta_box' ), 10); } } }