Wordpress Custom Hooks For Theme Issue -
Using the Share Button plugin. All social buttons are now shown right below the post content. But I want to show them on a custom status in the postdate
The plugin buttons are shown using the following part of the code:
add_filter ('the_content', ' Ssb_display ');
This code shows a social share button below the post content, but I want to show them on the second position in the same post div. how can I do this. Please do not give negative to my question as I'm a newbie in WordPress.
In fact I want to define the add_filter to hook that in my filter hook then wordpress.
Thank you. Unlike add_filter
, and since the callback is registered by one In the name function, you only need to add
// functions.php remove_filter ('the_content', 'ssb_display');
and then display, the buttons you want
Update
for any reason you do not use Can ssb_display
function directly in your template, you can use a custom filter apply_filters
// functions.php add_filter (' Show_the_ssb_button ',' ssb_display ') // template.php & lt ;? Php echo apply_filters ('show_the_ssb_button', $ contents)? & Gt;
If ssb_display
does not use specific information from the content, then the $ content
variable can be an empty string.
Comments
Post a Comment