[Plugin: AddThis] Support for Custom Post Types
I’m using this plugin on a website with three different custom post types, but I only wanted the AddThis-buttons to be displayed on Posts.
Unfortunately this plugin doesn’t have support for hiding the buttons on Custom Post Types. I added two lines of code to hide it on my Custom Post Types, but i think it would be better to have an option on the settings-screen.
I added this on line 1183 in the file addthis_social_widget.php:
elseif ( 'my_custom_post_type' == get_post_type() ) $display = false;
- The topic ‘[Plugin: AddThis] Support for Custom Post Types’ is closed to new replies.