Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2. /**
  3. * Main functions file
  4. *
  5. * @package WordPress
  6. * @subpackage Shop Isle
  7. */
  8. $vendor_file = trailingslashit( get_template_directory() ) . 'vendor/autoload.php';
  9. if ( is_readable( $vendor_file ) ) {
  10. require_once $vendor_file;
  11. }
  12.  
  13. if ( ! defined( 'WPFORMS_SHAREASALE_ID' ) ) {
  14. define( 'WPFORMS_SHAREASALE_ID', '848264' );
  15. }
  16.  
  17. add_filter( 'themeisle_sdk_products', 'shopisle_load_sdk' );
  18. /**
  19. * Loads products array.
  20. *
  21. * @param array $products All products.
  22. *
  23. * @return array Products array.
  24. */
  25. function shopisle_load_sdk( $products ) {
  26. $products[] = get_template_directory() . '/style.css';
  27.  
  28. return $products;
  29. }
  30. /**
  31. * Initialize all the things.
  32. */
  33. require get_template_directory() . '/inc/init.php';
  34.  
  35. /**
  36. * Note: Do not add any custom code here. Please use a child theme so that your customizations aren't lost during updates.
  37. * http://codex.wordpress.org/Child_Themes
  38. */
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement