pods_admin_setup_add_create_pod_type
The Pods - Custom Content Types and Fields pods admin setup add create pod type hook.
Description
Parameters (1)
- 0. $data (unknown)
- The data.
Usage
- To run the hook, copy the example below.
- $data = apply_filters( 'pods_admin_setup_add_create_pod_type', $data );
- if ( !empty( $data ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the pods_admin_setup_add_create_pod_type callback
- function filter_pods_admin_setup_add_create_pod_type( $data ) {
- // make filter magic happen here...
- return $data;
- };
- // add the filter
- add_filter( 'pods_admin_setup_add_create_pod_type', 'filter_pods_admin_setup_add_create_pod_type', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'pods_admin_setup_add_create_pod_type', 'filter_pods_admin_setup_add_create_pod_type', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /ui/admin/setup-add.php
- $data = apply_filters( 'pods_admin_setup_add_create_pod_type', $data );