diff --git a/src/class-parsely.php b/src/class-parsely.php index 23c44eeda..b9b83a337 100644 --- a/src/class-parsely.php +++ b/src/class-parsely.php @@ -1055,23 +1055,6 @@ public function construct_parsely_metadata( array $parsely_options, $post ): arr $parsely_page['url'] = home_url(); } - /** - * Filters the structured metadata. - * - * @deprecated 2.5.0 Use `wp_parsely_metadata` filter instead. - * @since 1.10.0 - * - * @param array $parsely_page Existing structured metadata for a page. - * @param WP_Post $post Post object. - * @param array $parsely_options The Parsely options. - */ - $parsely_page = apply_filters_deprecated( - 'after_set_parsely_page', - array( $parsely_page, $post, $parsely_options ), - '2.5.0', - 'wp_parsely_metadata' - ); - /** * Filters the structured metadata. * diff --git a/tests/Integration/OtherTest.php b/tests/Integration/OtherTest.php index 7a32a8a3b..9ab0dc83d 100644 --- a/tests/Integration/OtherTest.php +++ b/tests/Integration/OtherTest.php @@ -253,7 +253,6 @@ public function test_load_js_api_with_secret(): void { /** * Check out page filtering. * - * @expectedDeprecated after_set_parsely_page * @covers \Parsely::construct_parsely_metadata * @uses \Parsely::get_author_name * @uses \Parsely::get_author_names @@ -282,7 +281,7 @@ public function test_parsely_page_filter(): void { // Apply page filtering. $headline = 'Completely New And Original Filtered Headline'; add_filter( - 'after_set_parsely_page', + 'wp_parsely_metadata', function( $args ) use ( $headline ) { $args['headline'] = $headline;