Provider::remove_legacy_init_hooks()
Removal of the hooks that are attached after the action “init” has been fired.
Source
File: src/Events_Pro/Custom_Tables/V1/Legacy_Compat/Provider.php
public function remove_legacy_init_hooks() {
if ( ! $this->container->isBound( 'events-pro.editor.meta' ) ) {
return;
}
$pro_editor_meta = $this->container->make( 'events-pro.editor.meta' );
// @todo Why are we doing this? And if we are removing it here, perhaps we should only do so after we implement $this->handle_legacy_compatibility()
/*remove_filter( 'get_post_metadata', [ $pro_editor_meta, 'fake_blocks_response' ], 15 );
remove_filter( 'get_post_metadata', [ $pro_editor_meta, 'fake_recurrence_description' ], 15 );*/
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |