How to pull code snippet from functionality plugin?
You’re trying to echo <?php tags, but that won’t work: they won’t be processed. Instead you need to replicate that logic in PHP statements in your function instead. Here’s a partial answer: function epf_extra_buttons( $post_ID ) { // TODO: where does $es_settings come from? $encoded_permalink = urlencode(get_the_permalink()); if ( $es_settings->share_facebook ) { echo ‘<a class=”a2a_button_facebook” … Read more