pods_generate_key

The Pods - Custom Content Types and Fields pods generate key hook.

Description

apply_filters( 'pods_generate_key', (unknown) $token, (unknown) $datatype, (unknown) $uri_hash, (unknown) $columns, $int_form_count ); 

Parameters (5)

0. $token (unknown)
The token.
1. $datatype (unknown)
The datatype.
2. $uri_hash (unknown)
The uri hash.
3. $columns (unknown)
The columns.
4. $int_form_count
The int form count.

Usage

To run the hook, copy the example below.
  1. $token = apply_filters( 'pods_generate_key', $token, $datatype, $uri_hash, $columns, $int_form_count ); 
  2.  
  3. if ( !empty( $token ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the pods_generate_key callback 
  2. function filter_pods_generate_key( $token, $datatype, $uri_hash, $columns, $int_form_count ) { 
  3. // make filter magic happen here... 
  4. return $token
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pods_generate_key', 'filter_pods_generate_key', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pods_generate_key', 'filter_pods_generate_key', 10, 5 ); 

Defined (1)

The filter is defined in the following location(s).

/deprecated/deprecated.php  
  1. $token = apply_filters( 'pods_generate_key', $token, $datatype, $uri_hash, $columns, (int) $form_count );