2014-01-27 50 views

回答

0

試試這個:

/** 
* Add custom fields 
*/ 
add_action('plugins_loaded', 'tut_add_custom_fields'); 

function tut_add_custom_fields() { 
    global $wpas; 
    if ($wpas) { 
     $wpas->addCustomField('user_site_url', array('id' => 'user_site_url', 'label' => __(' User site URL','tut'))); 
    } 

} 
0

試試這個

/** 
* Register all custom fields after the plugin is safely loaded. 
*/ 
add_action('plugins_loaded', 'wpas_user_custom_fields'); 

if (function_exists('wpas_add_custom_field')) { 
    wpas_add_custom_field('my_custom_field', 
      array( 
       'title' => __('Your Site URL', 'awesome-support')) 
      ); 
} 
相關問題