Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-working README code sample #439

Merged
merged 1 commit into from
Oct 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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;
}
Expand Down