acf_srf_access_to_voting

The Advanced Custom Fields: Star Rating Field acf srf access to voting hook.

Description

apply_filters( 'acf_srf_access_to_voting', (unknown) $access_to_voting, (unknown) $post_id, (unknown) $field_data_key ); 

Parameters (3)

0. $access_to_voting (unknown)
The access to voting.
1. $post_id (unknown)
The post id.
2. $field_data_key (unknown)
The field data key.

Usage

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

Defined (1)

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

/functions.php  
  1. $access_to_voting = apply_filters( 'acf_srf_access_to_voting', $access_to_voting, $post_id, $field_data['key'] );