remove_filter( \'the_content\', \'sharing_display\', 19 );
remove_filter( \'the_excerpt\', \'sharing_display\', 19 );
add_filter( \'the_content\', \'share_buttons_above_post\', 19 );
add_filter( \'the_excerpt\', \'share_buttons_above_post\', 19 );
function share_buttons_above_post( $content = \'\' ) {
if ( function_exists( \'sharing_display\' ) ) {
return sharing_display() . $content;
}
else {
return $content;
}
}
更改
hook.
相关信息https://wordpress.stackexchange.com/a/12826/9884