From 08a14f40d1ee8cad163dcc2e62643621147815da Mon Sep 17 00:00:00 2001 From: Pau Argelaguet Date: Fri, 8 Oct 2021 11:20:16 +0200 Subject: [PATCH] Fix not working readme code sample --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0dd58d254..235c38af2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Tested up to: 5.8 Requires PHP: 7.1 License: GPLv2 or later Tags: analytics, parse.ly, parsely, parsley -Contributors: parsely, hbbtstar, jblz, mikeyarce, GaryJ, parsely_mike, pauarge +Contributors: parsely, hbbtstar, jblz, mikeyarce, GaryJ, parsely_mike, pauargelaguet The Parse.ly plugin facilitates real-time and historical analytics to your content through a platform designed and built for digital publishing. @@ -69,7 +69,7 @@ You may also be not tracking logged-in users, via one of the settings. You can use the `wp_parsely_metadata` filter, which sends three arguments: the array of metadata, the post object, and the `parsely_options` array: add_filter( 'wp_parsely_metadata', 'filter_parsely_metadata', 10, 3 ); - function filter_parsely_page( $parsely_metadata, $post, $parsely_options ) { + function filter_parsely_metadata( $parsely_metadata, $post, $parsely_options ) { $parsely_metadata['articleSection'] = '...'; // Whatever values you want Parse.ly's Section to be. return $parsely_metadata; }