Plugin Directory

Changeset 1712294


Ignore:
Timestamp:
08/11/2017 07:55:00 PM (9 years ago)
Author:
brianbrey
Message:

Filter for custom post types

Location:
easy-social-share-buttons/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • easy-social-share-buttons/trunk/easy-social-share-buttons.php

    r1671080 r1712294  
    22/*
    33 * Plugin Name: Easy Social Share Buttons
    4  * Version: 1.4.1
     4 * Version: 1.4.2
    55 * Plugin URI: http://www.idiom.co/
    66 * Description: Easily add social sharing buttons to your posts and images without slowing down your site with unnecessary javascript and image files.
  • easy-social-share-buttons/trunk/includes/class-easy-social-share-buttons.php

    r1671080 r1712294  
    673673     */
    674674    public function add_share_buttons_to_post ( $content ) {
     675
     676        $post_types = apply_filters( 'update_easy_social_share_post_types', array('post') );
    675677       
    676         if ( !is_singular( 'post' ) ) {
     678        if ( !is_singular( $post_types ) ) {
    677679            return $content;
    678680        }
  • easy-social-share-buttons/trunk/readme.txt

    r1671080 r1712294  
    44Requires at least: 3.9
    55Tested up to: 4.5.2
    6 Stable tag: 1.4.1
     6Stable tag: 1.4.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4343
    4444== Changelog ==
     45
     46= 1.4.2 =
     47* 2017-08-11
     48* Add filter 'update_easy_social_share_post_types' to add share buttons to custom post types
    4549
    4650= 1.4.1 =
Note: See TracChangeset for help on using the changeset viewer.