Title: Is this OK for my function.php?
Last modified: August 21, 2016

---

# Is this OK for my function.php?

 *  Resolved [martcol](https://wordpress.org/support/users/hotmale/)
 * (@hotmale)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is-this-ok-for-my-functionphp/)
 * 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)

 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is-this-ok-for-my-functionphp/#post-4315397)
 * Hi martcol,
 * It looks good.
 * Regards
 *  Thread Starter [martcol](https://wordpress.org/support/users/hotmale/)
 * (@hotmale)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is-this-ok-for-my-functionphp/#post-4315399)
 * Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Is this OK for my function.php?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [martcol](https://wordpress.org/support/users/hotmale/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/is-this-ok-for-my-functionphp/#post-4315399)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
