Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //*CUSTOM HEADER SIZE
- add_filter( 'twentyeleven_header_image_height', 'bylivkolding_header_height');
- function bylivkolding_header_height($param) {
- return 150;
- }
- ?>
- <?php
- /*
- Plugin Name: ShareDaddy & PPA/APP Fix
- Description: Fixes the Incompatibility between Post-Page-Associator/Associated Posts Pro and ShareDaddy (JetPack) Plugin.
- Version: 1.0
- Author: Dennis Hoppe
- Author URI: http://DennisHoppe.de
- */
- // Plugin Class
- If (!Class_Exists('wp_plugin_sharedaddy_post_page_associator_fix')){
- Class wp_plugin_sharedaddy_post_page_associator_fix {
- Function __construct(){
- Add_Action('init', Array($this, 'Repair_ShareDaddy_Hooks'));
- }
- Function Repair_ShareDaddy_Hooks(){
- If (Function_Exists('sharing_display')){
- // Remove non working filters
- Remove_Filter( 'the_content', 'sharing_display', 19 );
- Remove_Filter( 'the_excerpt', 'sharing_display', 19 );
- // Add new filters
- Add_Filter( 'the_content', 'sharing_display', 11 );
- Add_Filter( 'the_excerpt', 'sharing_display', 11 );
- }
- }
- } /* End of Class */
- New wp_plugin_sharedaddy_post_page_associator_fix();
- } /* End of If-Class-Exists-Condition */
- /* End of File */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement