press_data
Filters the Press This data array.
Description
Parameters (1)
- 0. $data (array)
- Press This Data array.
Usage
- To run the hook, copy the example below.
- $data = apply_filters( 'press_data', $data );
- if ( !empty( $data ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the press_data callback
- function filter_press_data( $data ) {
- // make filter magic happen here...
- return $data;
- };
- // add the filter
- add_filter( 'press_data', 'filter_press_data', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'press_data', 'filter_press_data', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/includes/class-wp-press-this.php
- return apply_filters( 'press_this_data', $data );