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 :: Catches the last error php 
Php :: laravel append parameter to links 
Php :: php curl add user agent 
Php :: adminlte 3 laravel 
Php :: Laravel Model Create Artisan Commant 
Php :: laravel wheredate 
Php :: display image from mysqli database 
Php :: zip missing php install 
Php :: php count occurrences of string in array 
Php :: docker : from php alpine 
Php :: php find similitur in two array 
Php :: new DateInterval 1 hour 
Php :: laravel model sync 
Php :: php var use in javascript 
Php :: woocommerce after order been placed hook 
Php :: laravel form 
Php :: php json get value by key 
Php :: create migration with model laravel 
Php :: how to enable pretty url in yii2 
Php :: generate random string in php 
Php :: rename migration laravel 
Php :: enqueue css 
Php :: $product-product_type 
Php :: get file size in php 
Php :: select option edit in laravel 
Php :: unique key value array php 
Php :: laravel Impossible to create the root directory 
Php :: php json_decode not working 
Php :: switch php versions 
Php :: laravel storage link without command line 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =