HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/fortest.org.uk/public_html/wp-content/themes/onepress/inc/customize-configs/options.php
<?php
/**
 * Site Options
 *
 * @package onepress
 */

$wp_customize->add_panel(
	'onepress_options',
	array(
		'priority'       => 5,
		'capability'     => 'edit_theme_options',
		'theme_supports' => '',
		'title'          => esc_html__( 'Theme Options', 'onepress' ),
		'description'    => '',
	)
);


if ( ! function_exists( 'wp_get_custom_css' ) ) {  // Back-compat for WordPress < 4.7.

	// Custom CSS Settings.
	$wp_customize->add_section(
		'onepress_custom_code',
		array(
			'title' => __( 'Custom CSS', 'onepress' ),
			'panel' => 'onepress_options',
		)
	);


	$wp_customize->add_setting(
		'onepress_custom_css',
		array(
			'default'           => '',
			'sanitize_callback' => 'onepress_sanitize_css',
			'type'              => 'option',
		)
	);

	$wp_customize->add_control(
		'onepress_custom_css',
		array(
			'label'   => __( 'Custom CSS', 'onepress' ),
			'section' => 'onepress_custom_code',
			'type'    => 'textarea',
		)
	);
} else {
	$wp_customize->get_section( 'custom_css' )->priority = 994;
}