sharedaddy.php 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Module Name: Sharing
  4. * Module Description: Allow visitors to share your content.
  5. * Jumpstart Description: Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.
  6. * Sort Order: 7
  7. * Recommendation Order: 6
  8. * First Introduced: 1.1
  9. * Major Changes In: 1.2
  10. * Requires Connection: No
  11. * Auto Activate: Yes
  12. * Module Tags: Social, Recommended
  13. * Feature: Engagement, Jumpstart
  14. * Additional Search Queries: share, sharing, sharedaddy, buttons, icons, email, facebook, twitter, google+, linkedin, pinterest, pocket, press this, print, reddit, tumblr
  15. */
  16. if ( !function_exists( 'sharing_init' ) )
  17. include dirname( __FILE__ ).'/sharedaddy/sharedaddy.php';
  18. add_action( 'jetpack_modules_loaded', 'sharedaddy_loaded' );
  19. function sharedaddy_loaded() {
  20. Jetpack::enable_module_configurable( __FILE__ );
  21. Jetpack::module_configuration_load( __FILE__, 'sharedaddy_configuration_load' );
  22. }
  23. function sharedaddy_configuration_load() {
  24. wp_safe_redirect( menu_page_url( 'sharing', false ) . "#sharing-buttons" );
  25. exit;
  26. }