Automattic / Automattic/jetpack

Enhancement: Add ability to filter meta tags

Open
#25,267 0 comments 0 reactions 0 assignees View on GitHub
[Plugin] Social Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Social

### What

It will be great to add ability to filter meta tags especially image

### How

Add `apply_filters` function to allow plugin developers to substitute their own image.

https://github.com/Automattic/jetpack/blob/trunk/projects/plugins/social/src/class-meta-tags.php#L278

Contributor guide

Open the contributing guide

Research direction

Start in projects/plugins/social/src/class-meta-tags.php around line 278 and inspect how the image meta tag is assembled. Add a documented filter point so plugin developers can substitute the image, then verify that the generated image meta tag uses the filtered value.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.