0
votes

Can any1 guide me as how to add extra fields in the awesome support plugin wordpress other than the existing ones so as to store the newly added fields data with tickets that are submitted. I checked the link http://support.themeavenue.net/plugins/wpas/add-custom-field-submission-form/ but it is somehow not working.

Thanks in advance.

3

3 Answers

0
votes

Try this one:

/**
 * 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
votes

Try this

/**
 * 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' ) ) 
            );
}
0
votes

If you know how to code in PHP, you should create a dedicated plugin and follow samples here.