before_rtmedia_gallery_display
Helper function to check whether the shortcode should be rendered or not.
Description
Parameters (1)
- 0. $flag (unknown)
- The flag.
Usage
- To run the hook, copy the example below.
- $flag = apply_filters( 'before_rtmedia_gallery_display', $flag );
- if ( !empty( $flag ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the before_rtmedia_gallery_display callback
- function filter_before_rtmedia_gallery_display( $flag ) {
- // make filter magic happen here...
- return $flag;
- };
- // add the filter
- add_filter( 'before_rtmedia_gallery_display', 'filter_before_rtmedia_gallery_display', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'before_rtmedia_gallery_display', 'filter_before_rtmedia_gallery_display', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /app/main/controllers/shortcodes/RTMediaGalleryShortcode.php
- $flag = apply_filters( 'before_rtmedia_gallery_display', $flag );