WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Is this OK for my function.php?

[Resolved] Is this OK for my function.php?

  • martcol
    Participant

    @hotmale

    I wonder if someone might be good enough to just check this bit of code. It works OK so that might mean I’m on the right track. All I am trying to do, in my child theme is use a theme specific hook to add some HTML.

    function bts_social_share() {
            if(!is_feed() && !is_home()) {
                   include_once( 'social-share.php' );        }
            }
    add_action ('reactor_post_footer', 'bts_social_share');

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Is this OK for my function.php?’ is closed to new replies.