Add shortcode [our_team_cg][/our_team_cg] on page of visibility block
About Member Info
Social Profiles
';
}
/*save metabox*/
function save_metaboxes_company_team() {
// пришло ли поле наших данных?
if (isset($_POST['_company_team_appointment']))
{ } else { return; }
// не происходит ли автосохранение?
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
return;
// не ревизию ли сохраняем?
if (wp_is_post_revision( get_the_ID() ) )
return;
// проверка достоверности запроса
check_admin_referer('metatest_action_company_team', 'metatest_nonce_company_team');
// коррекция данных
// запись
update_post_meta(get_the_ID(), '_company_team_appointment', sanitize_text_field($_POST['_company_team_appointment']));
update_post_meta(get_the_ID(), '_company_team_description', sanitize_text_field($_POST['_company_team_description']));
update_post_meta(get_the_ID(), '_company_team_social_ln', sanitize_text_field($_POST['_company_team_social_ln']));
update_post_meta(get_the_ID(), '_company_team_social_fb', sanitize_text_field($_POST['_company_team_social_fb']));
update_post_meta(get_the_ID(), '_company_team_social_vk', sanitize_text_field($_POST['_company_team_social_vk']));
update_post_meta(get_the_ID(), '_company_team_social_gp', sanitize_text_field($_POST['_company_team_social_gp']));
update_post_meta(get_the_ID(), '_company_team_social_tw', sanitize_text_field($_POST['_company_team_social_tw']));
}
?>