HEX
Server: Apache
System: Linux webm010.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: alloesb (202139)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/alloesb/www/wp-content/plugins/pixtypes/plugin-config.php
<?php defined( 'ABSPATH' ) or die;

$basepath = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;

$debug = false;
if ( isset( $_GET['debug'] ) && $_GET['debug'] == 'true' ) {
	$debug = true;
}

$options = get_option( 'pixtypes_settings' );

$display_settings = false;

if ( isset( $options['display_settings'] ) ) {
	$display_settings = $options['display_settings'];
}

return array(
	'plugin-name' => 'pixtypes',

	'settings-key' => 'pixtypes_settings',

	'textdomain' => 'pixtypes',

	'template-paths' => array(
		$basepath . 'core/views/form-partials/',
		$basepath . 'views/form-partials/',
	),

	'fields' => array(
		'hiddens'
		=> include 'settings/hiddens' . EXT,
		'post_types'
		=> include 'settings/post_types' . EXT,
		'taxonomies'
		=> include 'settings/taxonomies' . EXT,
	),

	'processor' => array(
		// callback signature: (array $input, PixtypesProcessor $processor)

		'preupdate'  => array(
			// callbacks to run before update process
			// cleanup and validation has been performed on data
		),
		'postupdate' => array(
			'save_settings'
		),
	),

	'cleanup' => array(
		'switch' => array( 'switch_not_available' ),
	),

	'checks' => array(
		'counter' => array( 'is_numeric', 'not_empty' ),
	),

	'errors' => array(
		'not_empty' => esc_html__( 'Invalid Value.', pixtypes::textdomain() ),
	),

	'callbacks' => array(
		'save_settings' => 'save_pixtypes_settings'
	),

	'display_settings' => $display_settings,

	// shows exception traces on error
	'debug'            => $debug,

); # config