php 将移动徽标添加到自定义程序
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 将移动徽标添加到自定义程序相关的知识,希望对你有一定的参考价值。
add_action( 'customize_register', 'novelty_customizer' );
/**
* Register settings and controls with the Customizer.
*
* @since 1.0.0
*
* @param WP_Customize_Manager $wp_customize Customizer object.
*/
function novelty_customizer(){
global $wp_customize;
// Mobile logo
$wp_customize->add_setting( 'mobile_logo' );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'mobile_logo', array(
'label' => 'Mobile logo',
'section' => 'header_image',
'settings' => 'mobile_logo',
'priority' => 10
) ) );
}
以上是关于php 将移动徽标添加到自定义程序的主要内容,如果未能解决你的问题,请参考以下文章