src/AcfExportManager.php
public function addGroupKeyToPostbox($post)
    {
        if ($post->post_type !== 'acf-field-group') {
            return;
        }

        // Check if aldready added
        global $acfExportManagerHasGroupIdInSidebar;
        if ($acfExportManagerHasGroupIdInSidebar) {
            return;
        }

        $acfExportManagerHasGroupIdInSidebar = true;

        $fieldgroup = acf_get_field_group($post->ID);

        echo '<div class="misc-pub-section"><span style="color:#82878c;font-size:20px;display:inline-block;width:18px;vertical-align:middle;position:relative;top:-1px;text-align:center;margin-right:8px;">#</span>' . $fieldgroup['key'] . '</div>';
    }
public function addGroupKeyToPostbox($post)
    {
        if ($post->post_type !== 'acf-field-group') {
            return;
        }

        // Check if aldready added
        global $acfExportManagerHasGroupIdInSidebar;
        if ($acfExportManagerHasGroupIdInSidebar) {
            return;
        }

        $acfExportManagerHasGroupIdInSidebar = true;

        $fieldgroup = acf_get_field_group($post->ID);

        echo '<div class="misc-pub-section"><span style="color:#82878c;font-size:20px;display:inline-block;width:18px;vertical-align:middle;position:relative;top:-1px;text-align:center;margin-right:8px;">#</span>' . $fieldgroup['key'] . '</div>';
    }
public function addGroupKeyToPostbox ( $ post ) { if ( $ post -> post_type !== 'acf-field-group' ) { return ; } // Check if aldready added global $ acfExportManagerHasGroupIdInSidebar ; if ( $ acfExportManagerHasGroupIdInSidebar ) { return ; } $ acfExportManagerHasGroupIdInSidebar = true ; $ fieldgroup = acf_get_field_group ( $ post -> ID ) ; echo '<div class="misc-pub-section"><span style="color:#82878c;font-size:20px;display:inline-block;width:18px;vertical-align:middle;position:relative;top:-1px;text-align:center;margin-right:8px;">#</span>' . $ fieldgroup [ 'key' ] . '</div>' ; }
Displays the fieldgroup key in misc publishing actions
@param WP_Post $post
Displays the fieldgroup key in misc publishing actions