C:\xampp\htdocs\landing\wp-content\updraft\plugins-old\penci-pennews-amp\includes\amp-metabox.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
if ( ! defined'ABSPATH' ) ) {
    exit;
}
add_filter'rwmb_meta_boxes''penci_amp_register_meta_boxes' );

function 
penci_amp_register_meta_boxes$meta_boxes ) {
    
$meta_boxes[] = array(
        
'id'         => 'penci-amp-settings',
        
'title'      => esc_html__'Penci AMP Settings''pennews' ),
        
'post_types' => array( 'post''page','product' ),
        
'context'    => 'side',
        
'priority'   => 'default',
        
'fields'     => array(
            array(
                
'id'   => 'penci_dis_amp_onpost',
                
'name' => esc_html__'Disable amp version''pennews' ),
                
'type' => 'checkbox',
            ),
        )
    );

    return 
$meta_boxes;
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586