Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# Build and config files
/bin/ export-ignore
/composer.json export-ignore
/composer.lock export-ignore
/package-lock.json export-ignore
/package.json export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
Expand Down
Binary file removed .wordpress-org/banner.psd
Binary file not shown.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pfefferle/wordpress-opengraph",
"description": "Adds Open Graph metadata to your posts and pages so that they look great when shared on sites like Facebook and Twitter.",
"type": "wordpress-plugin",
"license": "Apache License, Version 2.0",
"license": "Apache-2.0",
"require": {
"php": ">=7.4",
"composer/installers": "^1.0 || ^2.0"
Expand All @@ -21,9 +21,6 @@
"config": {
"allow-plugins": true
},
"allow-plugins": {
"composer/installers": true
},
"extra": {
"installer-name": "opengraph"
},
Expand Down
4 changes: 2 additions & 2 deletions opengraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* Description: Adds Open Graph metadata to your pages
* Author: Will Norris & Matthias Pfefferle
* Author URI: https://github.com/pfefferle/wordpress-opengraph
* Version: 2.0.2
* Version: 3.0.0
* License: Apache License, Version 2.0
* License URI: http://www.apache.org/licenses/LICENSE-2.0.html
* License URI: https://www.apache.org/licenses/LICENSE-2.0.html
* Requires at least: 6.2
* Requires PHP: 7.4
* Text Domain: opengraph
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wordpress-opengraph",
"description": "Adds Open Graph metadata to WordPress",
"author": "Matthias Pfefferle",
"license": "MIT",
"license": "Apache-2.0",
"devDependencies": {
"@wordpress/env": "^11.8.1"
},
Expand Down
17 changes: 15 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
- Tags: social, opengraph, ogp, facebook
- Requires at least: 6.2
- Tested up to: 7.1
- Stable tag: 2.0.2
- Stable tag: 3.0.0
- Requires PHP: 7.4
- License: Apache License, 2.0
- License: Apache License, Version 2.0
- License URI: https://www.apache.org/licenses/LICENSE-2.0.html


Expand Down Expand Up @@ -64,6 +64,19 @@ The plugin populates the meta 'name' attribute alongside the 'property' attribut

Project maintained on github at [pfefferle/wordpress-opengraph](https://github.com/pfefferle/wordpress-opengraph).

### 3.0.0 (Sep 18, 2026)

- simpler image handling: one pass over the post content, catches gallery, media & text and nested block images
- new `opengraph_image_sources` filter to add or remove image sources
- the property filters get the metadata collected so far as second argument
- twitter card is `summary_large_image` whenever the post has an image, `summary` for the fallback images
- use the current page of a multipage post and the `<!--more-->` teaser for the description (#9)
- fixed merging into an existing `prefix` attribute
- fixed a fatal error with The Events Calendar (#39)
- **breaking:** removed `opengraph_block_image`, `opengraph_parsed_image`, `opengraph_attached_image`, `opengraph_ensure_max_image` and `opengraph_site_supports_blocks` (and its filter), use the `opengraph_image_sources` filter instead
- minimum WordPress version is now 6.2
- added phpunit tests

### 2.0.2 (Feb 25, 2025)

- Add a constant to easily change the max number of images to be included in the OpenGraph meta tags.
Expand Down
Loading