Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.112.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : footer.php
<?php
if(!function_exists('bwp_create_type_footer')  ){
    function bwp_create_type_footer(){
		register_post_type( 'bwp_footer',
		array(
		  'labels' => array(
			'name' => __( 'Footer','wpbingo' ),
			'singular_name' => __( 'Footer','wpbingo' )
		  ),
		  'public' => true,
		  'has_archive' => true,
		  'rewrite' => array('slug' => 'footers'),
		  'menu_position' => 8,
		  'show_in_menu' => false,
		)
		);

		if($bwp_js_content_types = get_option('bwp_js_content_types')){
			if(!in_array('bwp_footer',$bwp_js_content_types)){
			  $bwp_js_content_types[] = 'bwp_footer';
			}
			$options[] = 'bwp_footer';
			update_option( 'bwp_js_content_types',$bwp_js_content_types );
		}else{
			$options = array('page','bwp_footer');
		}
	}
	add_action( 'init','bwp_create_type_footer',2 );
}

© 2025 XylotrechusZ