Php 在wordpress自定义\u寄存器上使用多个函数?
为了更好地组织我的主题的functions.php,我想知道是否可以在customize_register上使用add_操作添加多个函数?例如:Php 在wordpress自定义\u寄存器上使用多个函数?,php,wordpress,function,wordpress-theming,Php,Wordpress,Function,Wordpress Theming,为了更好地组织我的主题的functions.php,我想知道是否可以在customize_register上使用add_操作添加多个函数?例如: function banana_customize($wp_customize) { ///// Content of function } add_action('customize_register','banana_customize') function coconut_customize($wp_customize) { ///// Con
function banana_customize($wp_customize) {
///// Content of function }
add_action('customize_register','banana_customize')
function coconut_customize($wp_customize) {
///// Content of function }
add_action('customize_register','coconut_customize')
如果我这样做,我有一个错误,页面将无法加载
如果这是不可能的,您能告诉我如何组合如下功能:
function banana_customize($wp_customize) {
///// Content of function }
function coconut_customize($wp_customize) {
///// Content of function }
" function combined_functions = banana_customize + coconut_customize "
add_action('customize_register','combined_functions')
提前感谢:)