Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wp_customize_image_control

$wp_customize->add_setting( 'logo', array(
    'capability'        => 'edit_theme_options',
    'default'           => '',
    'sanitize_callback' => 'ic_sanitize_image',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo',
    array(
        'label'    => __( 'Logo', 'text-domain' ),
        'section'  => 'general',
        'settings' => 'logo',
    )
) );
Comment

wp_customize image

$wp_customize->add_control(
       new WP_Customize_Image_Control(
           $wp_customize,
           'logo',
           array(
               'label'      => __( 'Upload a logo', 'theme_name' ),
               'section'    => 'your_section_id',
               'settings'   => 'your_setting_id',
               'context'    => 'your_setting_context'
           )
       )
   );
Comment

PREVIOUS NEXT
Code Example
Php :: php try to decode json 
Php :: Method IlluminateDatabaseEloquentCollection::delete does not exist. 
Php :: php copy array 
Php :: php require_once 
Php :: saving an image from pc to php 
Php :: pagination in codeigniter with example 
Php :: if home else php wordpress 
Php :: keep line breaks in textarea 
Php :: php artisan vendor:publish --provider="MaatwebsiteExcelExcelServiceProvider 
Php :: php array push with key 
Php :: laravel rule unique where 
Php :: php webserver 
Php :: laravel where and where 
Php :: use php artisan command through controller 
Php :: laravel check if collection has value 
Php :: woocommerce view order details frontend with shortcode 
Php :: eloquent insert into select 
Php :: How to Auto Backup Mysql Database Using PHP Script 
Php :: compact laravel 
Php :: laravel logout after password change 
Php :: php sort by key 
Php :: unique check two clolumn in laravel validation 
Php :: laravel db query log string replacements 
Php :: laravel request file empty 
Php :: -sale_price 
Php :: on keyup jquery for search php on basis of class name 
Php :: laravel transactions eloquent 
Php :: swagger laravel 
Php :: php reload after env 
Php :: user order by role spatie laravel 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =