manupulate_custom_attributes_<id>

The Social Viral Downloader manupulate custom attributes id hook.

Description

apply_filters( 'manupulate_custom_attributes_<id>', (unknown) $field_custom_attributes ); 

Parameters (1)

0. $field_custom_attributes (unknown)
The field custom attributes.

Usage

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

Defined (1)

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

/lib/php/class-dc-wp-fields.php  
  1. $field['custom_attributes'] = apply_filters('manupulate_custom_attributes_' . $field['id'], $field['custom_attributes']);