• Resolved Colir

    (@colir)


    Hello,
    how can we hook the method

     public function ao_metabox_add_box()
        {
            $screens = array(
                'post',
                'page',
                // add extra types e.g. product or ... ?
            );
    
            foreach ( $screens as $screen ) {
                add_meta_box(
                    'ao_metabox',
                    __( 'Autoptimize this page', 'autoptimize' ),
                    array( $this, 'ao_metabox_content' ),
                    $screen,
                    'side'
                );
            }
        }

    to display AO metabox on custom post type editing screen ?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Metabox on CustomPostType’ is closed to new replies.