• Resolved burton-nerd

    (@burton-nerd)


    Please update includes/class-easy-social-share-buttons.php

    
        public function add_share_buttons_to_post ( $content ) {
    
            $post_types = apply_filters( 'update_easy_social_share_post_types', array('post') );
    
            if ( !is_singular( $post_types ) ) {
                return $content;
            }
    ...

    This will allow adding a filter to add custom post types to easy social share. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter burton-nerd

    (@burton-nerd)

    If you can’t do that, please make ‘build_share_buttons()’ public so I can code my own version. Thanks!

    Plugin Author Idiom

    (@brianbrey)

    Thanks, Burton. We are working on a new update and will include post type support in this release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code to add custom post types to plugin’ is closed to new replies.