HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/buildfft/public_html/wp-content/plugins/pixfort-core/functions/footer.php
<?php
/**
 * pixfooter custom meta fields.
 */




/* ---------------------------------------------------------------------------
 * Create new post type
 * --------------------------------------------------------------------------- */
function pix_pixfooter_post_type(){
	//$pixfooter_item_slug = pix_get_option( 'pixfooter-slug', 'pixfooter-item' );
	$pixfooter_item_slug = "pixfooter-item";

	$labels = array(
		'name' 					=> __('Footers','pixfort-core'),
		'singular_name' 		=> __('Footer item','pixfort-core'),
		'add_new' 				=> __('Add New Footer','pixfort-core'),
		'add_new_item' 			=> __('Add New Footer item','pixfort-core'),
		'edit_item' 			=> __('Edit Footer item','pixfort-core'),
		'new_item' 				=> __('New Footer item','pixfort-core'),
		'view_item' 			=> __('View Footer item','pixfort-core'),
		'search_items' 			=> __('Search Footer items','pixfort-core'),
		'not_found' 			=> __('No Footer items found','pixfort-core'),
		'not_found_in_trash' 	=> __('No Footer items found in Trash','pixfort-core'),
		'parent_item_colon' 	=> ''
	  );

	$args = array(
		'labels' 				=> $labels,
		// 'menu_icon'				=> 'dashicons-images-alt2',
		'menu_icon' 				=> PIX_CORE_PLUGIN_URI .'functions/images/admin/footer-icon.svg',
		'public' 				=> true,
		'publicly_queryable' 	=> true,
		'has_archive' 	=> true,
		'show_ui' 				=> true,
		'query_var' 			=> true,
		'capability_type' 		=> 'post',
		'hierarchical' 			=> false,
		'menu_position' 		=> null,
		'exclude_from_search' 	=> true,
		'rewrite' 				=> array( 'slug' => $pixfooter_item_slug, 'with_front' => true ),
		'supports' 				=> array( 'title', 'editor', 'author', 'revisions', 'custom-fields', 'excerpt', 'thumbnail', 'page-attributes' ),
	);

	register_post_type( 'pixfooter', $args );

	register_taxonomy( 'pixfooter-types', 'pixfooter', array(
		'hierarchical' 			=> true,
		'label' 				=>  __( 'pixfooter categories', 'pixfort-core' ),
		'singular_label' 		=>  __( 'pixfooter category', 'pixfort-core' ),
		'rewrite'				=> true,
		'query_var' 			=> true
	));

	
}
add_action( 'init', 'pix_pixfooter_post_type' );





// Yoast SEO Plugin fix
function my_remove_wp_seo_pixfooter_meta_box() {
	remove_meta_box('wpseo_meta', 'pixfooter', 'normal');
}
add_action('add_meta_boxes', 'my_remove_wp_seo_pixfooter_meta_box', 100);



/*-----------------------------------------------------------------------------------*/
/*	Styles & scripts
 /*-----------------------------------------------------------------------------------*/
function pix_pixfooter_admin_styles() {
	wp_enqueue_style( 'pix-meta', PIX_CORE_PLUGIN_URI. '/functions/css/pixbuilder.css', false, PLUGIN_VERSION, 'all');
    wp_enqueue_style( 'pix-meta2', PIX_CORE_PLUGIN_URI. '/functions/pixbuilder.css', false, PLUGIN_VERSION, 'all');
}
add_action('admin_print_styles', 'pix_pixfooter_admin_styles');

?>