Instantly share code, notes, and snippets.

What would you like to do?
Awesome Support Custom Fields Starter Kit
* @package Awesome Support/Custom Fields
* @author ThemeAvenue <>
* @license GPL-2.0+
* @link
* @copyright 2014 ThemeAvenue
* @wordpress-plugin
* Plugin Name: Awesome Support: My Custom Fields
* Plugin URI:
* Description: Adds custom fields to the Awesome Support ticket submission form.
* Version: 0.1.0
* Author: ThemeAvenue
* Author URI:
* Text Domain: wpas
* License: GPL-2.0+
* License URI:
* Domain Path: /languages
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
add_action( 'plugins_loaded', 'wpas_user_custom_fields' );
* Register all custom fields after the plugin is safely loaded.
function wpas_user_custom_fields() {
/* You can start adding your custom fields safely after this line */
/* Do NOT write anything after this line */

This comment has been minimized.

Copy link

julien731 commented Oct 26, 2015

When using wpas_add_custom_field() or wpas_add_custom_taxonomy(), please make sure to wrap them inside a function_exists() check.


if ( function_exists( 'wpas_add_custom_field' ) ) {
    wpas_add_custom_field( 'my_custom_field',  array( 'title' => __( 'My Custom Field', 'awesome-support' ) ) );

This comment has been minimized.

Copy link

nooh43 commented Oct 26, 2018

I added it according to the instructions in the documentation, but still it's not showing up.
do I need to add any codes to the templates ?


This comment has been minimized.

Copy link

syedamirali14 commented Dec 29, 2018

yes i followed the same procedure it is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment