Settings::should_load_image_field_assets()
Logic to load image field assets.
Return
(bool)
Source
File: src/Tribe/Admin/Settings.php
public function should_load_image_field_assets() {
/**
* Filters whether or not we should load the image field assets on the settings page.
*
* @since 5.0.0
*
* @param boolean $return True or false whether to load image field assets.
*/
$load_assets = apply_filters( 'tec_admin_load_image_fields_assets', false );
if ( $load_assets ) {
wp_enqueue_media();
}
return $load_assets;
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |