Open Graph for Facebook, Google+ and Twitter Card Tags - Version 1.2

Version Description

  • Added filters for title, description and images, so another plugin or theme can override these values. The filters are fb_og_title, fb_og_desc and fb_og_image
Download this release

Release Info

Developer webdados
Plugin Icon Open Graph for Facebook, Google+ and Twitter Card Tags
Version 1.2
Comparing to
See all releases

Code changes from version 1.1.2 to 1.2

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wonderm00n-open-graph.php +8 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-faceb
4
  Tags: facebook, open graph, open graph protocol, seo, share, social, meta, schema, google+, g+, google, google plus, image, like, meta, search engine optimization
5
  Requires at least: 3.5
6
  Tested up to: 3.9
7
- Stable tag: 1.1.2
8
 
9
  This plugin inserts Facebook Open Graph, Google+/Schema.org and other Meta Tags into your WordPress Website for more efficient sharing results.
10
 
@@ -57,6 +57,9 @@ It allows the user to choose which tags are, or not, included and also the defau
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.1.2 =
61
  * Fix: Specific post image was not working properly
62
  * Added a "Clear field" button to the specific post image options box
4
  Tags: facebook, open graph, open graph protocol, seo, share, social, meta, schema, google+, g+, google, google plus, image, like, meta, search engine optimization
5
  Requires at least: 3.5
6
  Tested up to: 3.9
7
+ Stable tag: 1.2
8
 
9
  This plugin inserts Facebook Open Graph, Google+/Schema.org and other Meta Tags into your WordPress Website for more efficient sharing results.
10
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.2 =
61
+ * Added filters for title, description and images, so another plugin or theme can override these values. The filters are fb_og_title, fb_og_desc and fb_og_image
62
+
63
  = 1.1.2 =
64
  * Fix: Specific post image was not working properly
65
  * Added a "Clear field" button to the specific post image options box
wonderm00n-open-graph.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * @package Facebook Open Graph Meta Tags for WordPress
4
- * @version 1.1.2
5
  */
6
  /*
7
  Plugin Name: Facebook Open Graph Meta Tags for WordPress
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin (formerly known as "Wonderm00n's Simple Facebook Open Graph Meta Tags") inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective and efficient Facebook sharing results. It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective and efficient Google+ sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and twitterfeed post the image to Facebook correctly.
10
- Version: 1.1.2
11
  Author: Webdados
12
  Author URI: http://www.webdados.pt
13
  Text Domain: wd-fb-og
@@ -16,7 +16,7 @@ Domain Path: /lang
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
18
 
19
- $wonderm00n_open_graph_plugin_version='1.1.2';
20
  $wonderm00n_open_graph_plugin_settings=array(
21
  'fb_app_id_show',
22
  'fb_app_id',
@@ -276,6 +276,11 @@ function wonderm00n_open_graph() {
276
  //Image - From our plugin
277
  }
278
  }
 
 
 
 
 
279
 
280
  $html='
281
  <!-- START - Facebook Open Graph Meta Tags for WordPress '.$wonderm00n_open_graph_plugin_version.' -->
1
  <?php
2
  /**
3
  * @package Facebook Open Graph Meta Tags for WordPress
4
+ * @version 1.2
5
  */
6
  /*
7
  Plugin Name: Facebook Open Graph Meta Tags for WordPress
8
  Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
9
  Description: This plugin (formerly known as "Wonderm00n's Simple Facebook Open Graph Meta Tags") inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective and efficient Facebook sharing results. It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective and efficient Google+ sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and twitterfeed post the image to Facebook correctly.
10
+ Version: 1.2
11
  Author: Webdados
12
  Author URI: http://www.webdados.pt
13
  Text Domain: wd-fb-og
16
 
17
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
18
 
19
+ $wonderm00n_open_graph_plugin_version='1.2';
20
  $wonderm00n_open_graph_plugin_settings=array(
21
  'fb_app_id_show',
22
  'fb_app_id',
276
  //Image - From our plugin
277
  }
278
  }
279
+
280
+ //Apply Filters
281
+ $fb_title = apply_filters('fb_og_title', $fb_title);
282
+ $fb_desc = apply_filters('fb_og_desc', $fb_desc);
283
+ $fb_image = apply_filters('fb_og_image', $fb_image);
284
 
285
  $html='
286
  <!-- START - Facebook Open Graph Meta Tags for WordPress '.$wonderm00n_open_graph_plugin_version.' -->