1 | <?php |
||
19 | class GravityView_Theme_Hooks_GeneratePress extends GravityView_Plugin_and_Theme_Hooks { |
||
20 | /** |
||
21 | * @inheritDoc |
||
22 | * @since 2.10.3 |
||
23 | */ |
||
24 | public function __construct() { |
||
33 | |||
34 | /** |
||
35 | * Detect GV Views in parsed Gutenberg block content |
||
36 | * |
||
37 | * @since 2.10.3 |
||
38 | * |
||
39 | * @see \WP_Block::render() |
||
40 | * |
||
41 | * @param string $block_content Gutenberg block content |
||
42 | * |
||
43 | * @return false|string |
||
44 | */ |
||
45 | public function detect_views_in_block_content( $block_content ) { |
||
62 | } |
||
63 | |||
64 | new GravityView_Theme_Hooks_GeneratePress; |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.