Skip to content

Commit

Permalink
Merge pull request #31 from voceconnect/adding_get_vseo_meta_filter
Browse files Browse the repository at this point in the history
adding filter to get_vseo_meta to allow for filtering each type of meta field at the soonest point and incrementing version
  • Loading branch information
Michael Pretty committed Aug 13, 2015
2 parents 9117bcb + 14345cb commit 3bde586
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: voceplatforms, prettyboymp, matstars, kevinlangleyjr
Tags: SEO
Requires at least: 3.7.0
Tested up to: 4.2.2
Stable tag: 0.5.2
Tested up to: 4.2.4
Stable tag: 0.5.4
License: GPLv2 or later

An SEO plugin taking things from both WP SEO and All in One SEO but leaving out the VIP incompatible pieces.
Expand Down Expand Up @@ -31,6 +31,12 @@ if( ! class_exists( 'VSEO' ) ) {
```

== Changelog ==
= Version 0.5.4 =
* Adding `get_vseo_meta` filter

= Version 0.5.3 =
* Adding escaping per VIP

= Version 0.5.2 =
* Strict comparisons
* Escaping
Expand Down
5 changes: 3 additions & 2 deletions voce-seo.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Voce SEO
Version: 0.5.3
Version: 0.5.4
Plugin URI: http://voceconnect.com/
Description: An SEO plugin taking things from both WP SEO and All in One SEO but leaving out the VIP incompatible pieces.
Author: Voce Platforms
Expand Down Expand Up @@ -327,8 +327,9 @@ public static function get_seo_meta($key, $post_id = 0) {
if(!$post_id) $post_id = get_the_ID ( );

$vseo_meta = (array) get_post_meta($post_id, 'vseo_meta', true);
$value = isset($vseo_meta[$key]) ? $vseo_meta[$key] : null;

return isset($vseo_meta[$key]) ? $vseo_meta[$key] : null;
return apply_filters( 'get_vseo_meta', $value, $key, $post_id );
}

public static function get_meta_description() {
Expand Down

0 comments on commit 3bde586

Please sign in to comment.