PluginProbe ʕ •ᴥ•ʔ
External Links – nofollow, noopener & new window / 2.66
External Links – nofollow, noopener & new window v2.66
2.66 0.31 0.32 0.33 0.34 0.35 1.01 1.02 1.03 1.10 1.20 1.21 1.30 1.31 1.40 1.41 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.60 1.61 1.62 1.70 1.80 1.81 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 2.3 2.32 2.35 2.40 2.42 2.43 2.45 2.46 2.47 2.48 2.50 2.51 2.55 2.56 2.57 2.58 2.59 2.60 2.61 2.62 2.63 2.64 2.65 trunk 0.10 0.11 0.12 0.20 0.21 0.30
wp-external-links / libs / fwp / filter-hooks / class-fwp-final-output.php
wp-external-links / libs / fwp / filter-hooks Last commit date
class-fwp-final-output.php 3 years ago class-fwp-widget-output.php 3 years ago
class-fwp-final-output.php
40 lines
1 <?php
2 /**
3 * Class FWP_Final_Output_1x0x0
4 *
5 * @package FWP
6 * @category WordPress Library
7 * @version 1.0.0
8
9 * @link https://www.webfactoryltd.com/
10 */
11 class FWP_Final_Output_1x0x0 extends WPRun_Base_1x0x0
12 {
13
14 const FILTER_NAME = 'final_output';
15
16 /**
17 * Action for "init"
18 */
19 protected function action_init()
20 {
21 ob_start( $this->get_callback( 'apply' ) );
22 }
23
24 /**
25 * Apply filters
26 * @param string $content
27 * @return string
28 */
29 protected function apply( $content )
30 {
31 $filtered_content = apply_filters( self::FILTER_NAME, $content );
32
33 // remove filters after applying to prevent multiple applies
34 remove_all_filters( self::FILTER_NAME );
35
36 return $filtered_content;
37 }
38
39 }
40