Created
May 27, 2016 07:39
-
-
Save siamkreative/76993cbfdf01b3d8ab713bcc3ffc1993 to your computer and use it in GitHub Desktop.
Awesome Support - Register a custom field after the plugin is safely loaded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register all custom fields after the plugin is safely loaded. | |
*/ | |
add_action( 'plugins_loaded', 'wpas_user_custom_fields' ); | |
function wpas_user_custom_fields() { | |
if ( function_exists( 'wpas_add_custom_field' ) ) { | |
wpas_add_custom_taxonomy( 'my_custom_services', array( 'title' => 'My Custom Services', 'label' => 'Service', 'label_plural' => 'Services' ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment