Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Register Meta Boxes
- */
- add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
- $prefix = 'cc_';
- // Admin
- $post_id = isset( $_GET['post'] ) ? $_GET['post'] : ( isset( $_POST['post_ID'] ) ? $_POST['post_ID'] : false );
- // Front
- if ($post_id == false) {
- global $post;
- if (!empty($post)) {
- $post_id = $post->ID;
- }
- }
- /** PAGE D'ACCUEIL **/
- if ($post_id == 2) {
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'hp-nous',
- 'title' => __( 'Section "Nous"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-nous-titre",
- 'desc' => esc_html__( 'Le titre du bloc', 'langdomain' ),
- 'type' => 'text',
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-nous-texte",
- 'desc' => esc_html__( 'Contenu texte du bloc', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-nous-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-nous-image",
- 'desc' => esc_html__( 'La photo du bloc', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'hp-vousluielle',
- 'title' => __( 'Section "Vous / Lui / Elle"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Fiches
- array(
- 'name' => esc_html__( 'Fiches', 'langdomain' ),
- 'id' => "{$prefix}group-vle-fiches",
- 'type' => 'group',
- 'add_button' => 'Ajouter une fiche',
- 'collapsible' => true,
- 'group_title' => array( 'field' => 'cc_text-titre' ),
- 'clone' => true,
- 'sort_clone' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-titre",
- 'desc' => esc_html__( 'Le titre de la fiche', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-image",
- 'desc' => esc_html__( 'L\'image de la fiche', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-texte",
- 'desc' => esc_html__( 'Le texte de la fiche', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- )
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'hp-ohlesfilles',
- 'title' => __( 'Section "Oh les filles !"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-olf-titre",
- 'desc' => esc_html__( 'Le titre du bloc', 'langdomain' ),
- 'type' => 'text',
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-olf-texte",
- 'desc' => esc_html__( 'Contenu texte du bloc', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-olf-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-olf-image",
- 'desc' => esc_html__( 'La photo du bloc', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'hp-mesdamesmessieursseniors',
- 'title' => __( 'Section "Mesdames / Messieurs / Senios"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Fiches
- array(
- 'name' => esc_html__( 'Fiches', 'langdomain' ),
- 'id' => "{$prefix}group-mms-fiches",
- 'type' => 'group',
- 'add_button' => 'Ajouter une fiche',
- 'collapsible' => true,
- 'group_title' => array( 'field' => 'cc_text-titre' ),
- 'clone' => true,
- 'sort_clone' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-titre",
- 'desc' => esc_html__( 'Le titre de la fiche', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-image",
- 'desc' => esc_html__( 'L\'image de la fiche', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-texte",
- 'desc' => esc_html__( 'Le texte de la fiche', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- )
- ),
- ),
- );
- }
- /** PAGE NOUS **/
- if ($post_id == 28) {
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'nous-intro',
- 'title' => __( 'Section "Intro"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-intro-texte",
- 'desc' => esc_html__( 'Contenu texte du bloc', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-intro-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- // Ancre
- array(
- 'name' => esc_html__( 'Ancre', 'langdomain' ),
- 'id' => "{$prefix}text-intro-ancre",
- 'desc' => esc_html__( 'L\'ancre dans la page liée', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-intro-image",
- 'desc' => esc_html__( 'La photo du bloc', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'nous-suite',
- 'title' => __( 'Section "Agences / Conseillères / Services +"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Fiches
- array(
- 'name' => esc_html__( 'Fiches', 'langdomain' ),
- 'id' => "{$prefix}group-acs-fiches",
- 'type' => 'group',
- 'add_button' => 'Ajouter une fiche',
- 'collapsible' => true,
- 'group_title' => array( 'field' => 'cc_text-titre' ),
- 'clone' => true,
- 'sort_clone' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-titre",
- 'desc' => esc_html__( 'Le titre de la fiche', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-image",
- 'desc' => esc_html__( 'L\'image de la fiche', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-texte",
- 'desc' => esc_html__( 'Le texte de la fiche', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- // Ancre
- array(
- 'name' => esc_html__( 'Ancre', 'langdomain' ),
- 'id' => "{$prefix}text-ancre-titre",
- 'desc' => esc_html__( 'L\'ancre dans la page liée', 'langdomain' ),
- 'type' => 'text',
- ),
- )
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'nous-methode',
- 'title' => __( 'Section "Méthode"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-methode-titre",
- 'desc' => esc_html__( 'Le titre du bloc', 'langdomain' ),
- 'type' => 'text',
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-methode-texte",
- 'desc' => esc_html__( 'Contenu texte du bloc', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-methode-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- // Ancre
- array(
- 'name' => esc_html__( 'Ancre', 'langdomain' ),
- 'id' => "{$prefix}text-methode-ancre",
- 'desc' => esc_html__( 'L\'ancre dans la page liée', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-methode-image",
- 'desc' => esc_html__( 'La photo du bloc', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'nous-adhesion',
- 'title' => __( 'Section "Adhésion"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-adhesion-titre",
- 'desc' => esc_html__( 'Le titre du bloc', 'langdomain' ),
- 'type' => 'text',
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-adhesion-texte",
- 'desc' => esc_html__( 'Contenu texte du bloc', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-adhesion-lien",
- 'desc' => esc_html__( 'Page liée au bouton "Lire la suite"', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- // Ancre
- array(
- 'name' => esc_html__( 'Ancre', 'langdomain' ),
- 'id' => "{$prefix}text-ancre-titre",
- 'desc' => esc_html__( 'L\'ancre dans la page liée', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-adhesion-image",
- 'desc' => esc_html__( 'La photo du bloc', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- ),
- );
- }
- /** PAGE NOUS 2 **/
- if ($post_id == 30) {
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'noussuite-interview',
- 'title' => __( 'Section "Interview"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-interview-titre",
- 'desc' => esc_html__( 'Le titre du bloc', 'langdomain' ),
- 'type' => 'text',
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-interview-texte",
- 'desc' => esc_html__( 'Contenu texte du bloc', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- // Vidéo
- array(
- 'name' => esc_html__( 'Vidéo', 'langdomain' ),
- 'id' => "{$prefix}video-video",
- 'type' => 'video',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'noussuite-blocs',
- 'title' => __( 'Les différents blocs', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Blocs
- array(
- 'name' => esc_html__( 'Blocs', 'langdomain' ),
- 'id' => "{$prefix}group-blocs",
- 'type' => 'group',
- 'add_button' => 'Ajouter un bloc',
- 'collapsible' => true,
- 'group_title' => array( 'field' => 'cc_text-titre' ),
- 'clone' => true,
- 'sort_clone' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Titre', 'langdomain' ),
- 'id' => "{$prefix}text-titre",
- 'desc' => esc_html__( 'Le titre du bloc', 'langdomain' ),
- 'type' => 'text',
- ),
- // Ancre
- array(
- 'name' => esc_html__( 'Ancre', 'langdomain' ),
- 'id' => "{$prefix}text-ancre",
- 'desc' => esc_html__( 'Le titre du bloc', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-image",
- 'desc' => esc_html__( 'L\'image du bloc', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- // Texte
- array(
- 'name' => esc_html__( 'Texte', 'langdomain' ),
- 'id' => "{$prefix}wysiwyg-texte",
- 'desc' => esc_html__( 'Le texte du bloc', 'langdomain' ),
- 'raw' => false,
- 'type' => 'wysiwyg',
- 'options' => array(
- 'textarea_rows' => 4,
- 'teeny' => false,
- 'media_buttons' => false,
- ),
- ),
- )
- ),
- ),
- );
- }
- /** PAGE OH LES FILLES **/
- if ($post_id == 42) {
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'ohlesfilles-header',
- 'title' => __( 'Section "Header"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Incitation appel', 'langdomain' ),
- 'id' => "{$prefix}text-incitationappel",
- 'type' => 'text',
- ),
- ),
- );
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'ohlesfilles-fiches',
- 'title' => __( 'Section "Bonheur / Séduction / Solution"', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Fiches
- array(
- 'name' => esc_html__( 'Fiches', 'langdomain' ),
- 'id' => "{$prefix}group-acs-fiches",
- 'type' => 'group',
- 'add_button' => 'Ajouter une fiche',
- 'collapsible' => true,
- 'group_title' => array( 'field' => 'cc_text-haut' ),
- 'clone' => true,
- 'sort_clone' => true,
- 'fields' => array(
- // Titre
- array(
- 'name' => esc_html__( 'Texte Haut', 'langdomain' ),
- 'id' => "{$prefix}text-haut",
- 'desc' => esc_html__( 'Le texte en haut de la fiche', 'langdomain' ),
- 'type' => 'text',
- ),
- // Image
- array(
- 'name' => esc_html__( 'Image', 'langdomain' ),
- 'id' => "{$prefix}image_advanced-image",
- 'desc' => esc_html__( 'L\'image de la fiche', 'langdomain' ),
- 'type' => 'image_advanced',
- 'force_delete' => false,
- 'max_file_uploads' => 1,
- 'max_status' => false,
- ),
- // Titre
- array(
- 'name' => esc_html__( 'Texte Bas', 'langdomain' ),
- 'id' => "{$prefix}text-bas",
- 'desc' => esc_html__( 'Le texte en bas de la fiche', 'langdomain' ),
- 'type' => 'text',
- ),
- // Lien
- array(
- 'name' => esc_html__( 'Lien', 'langdomain' ),
- 'id' => "{$prefix}post-lien",
- 'desc' => esc_html__( 'Page liée', 'langdomain' ),
- 'type' => 'post',
- 'post_type' => 'page',
- 'field_type' => 'select_advanced',
- 'placeholder' => esc_html__( 'Sélectionner la page liée', 'langdomain' ),
- ),
- )
- ),
- ),
- );
- }
- /** LES PAGES **/
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'zone-formulaire',
- 'title' => __( 'Zone Formulaire (optionnel)', 'purple' ),
- 'post_types' => array( 'page' ),
- 'autosave' => true,
- 'fields' => array(
- // Vidéo (optionnel)
- array(
- 'name' => esc_html__( 'Shortcode du formulaire', 'purple' ),
- 'id' => "{$prefix}wysiwyg-formulaire",
- 'type' => 'text',
- ),
- // Couleur du formulaire
- array(
- 'name' => esc_html__( 'Couleur du formulaire', 'langdomain' ),
- 'id' => "{$prefix}radio-couleur_du_formulaire",
- 'type' => 'radio',
- 'options' => array(
- 'fushia' => esc_html__( 'Fushia', 'langdomain' ),
- 'blue' => esc_html__( 'Bleu', 'langdomain' ),
- 'grey' => esc_html__( 'Gris', 'langdomain' ),
- ),
- ),
- ),
- );
- /** LES PARUTIONS **/
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'informations-parutions',
- 'title' => __( 'Informations complémentaires', 'purple' ),
- 'post_types' => array( 'parutions' ),
- 'autosave' => true,
- 'fields' => array(
- // Vidéo (optionnel)
- array(
- 'name' => esc_html__( 'Vidéo', 'purple' ),
- 'id' => "{$prefix}url-video",
- 'type' => 'url',
- ),
- ),
- );
- /** LES TEMOIGNAGES **/
- $meta_boxes[] = array(
- 'revision' => true,
- 'id' => 'informations-temoignage',
- 'title' => <strong>( 'Informations complémentaires', 'purple' ),
- 'post_types' => array( 'temoignages' ),
- 'autosave' => true,
- 'fields' => array(
- // Auteur (optionnel)
- array(
- 'name' => esc_html</strong>( 'Auteur', 'purple' ),
- 'id' => "{$prefix}text-auteur",
- 'type' => 'text',
- ),
- ),
- );
- return $meta_boxes;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement