golden hour
/var/www/html/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Customizer
⬆️ Go Up
Upload
File/Folder
Size
Actions
Hooks.php
1.38 KB
Del
OK
Section
-
Del
OK
Service_Provider.php
1.26 KB
Del
OK
Edit: Hooks.php
<?php /** * Handles hooking all the actions and filters used by the module. * * To remove a filter: * remove_filter( 'some_filter', [ tribe( Tribe\Events\Views\V2\Customizer\Hooks::class ), 'some_filtering_method' ] ); * remove_filter( 'some_filter', [ tribe( 'views.v2.customizer.filters' ), 'some_filtering_method' ] ); * * To remove an action: * remove_action( 'some_action', [ tribe( Tribe\Events\Views\V2\Customizer\Hooks::class ), 'some_method' ] ); * remove_action( 'some_action', [ tribe( 'views.v2.customizer.hooks' ), 'some_method' ] ); * * @since 5.7.0 * * @package Tribe\Events\Views\V2\Customizer */ namespace Tribe\Events\Views\V2\Customizer; /** * Class Hooks * * @since 5.7.0 * * @package Tribe\Events\Views\V2\Customizer */ class Hooks extends \tad_DI52_ServiceProvider { /** * Binds and sets up implementations. * * @since 5.7.0 */ public function register() { $this->add_filters(); } public function add_filters() { add_filter( 'tribe_customizer_print_styles_action', [ $this, 'print_inline_styles_in_footer' ] ); } /** * Changes the action the Customizer should use to try and print inline styles to print the inline * styles in the footer. * * @since 5.7.0 * * @return string The action the Customizer should use to print inline styles. */ public function print_inline_styles_in_footer() { return 'wp_print_footer_scripts'; } }
Save