Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. {{{MY FUNCTION IS HERE}}}
  2.  
  3. /**
  4. * Front to the WordPress application. This file doesn't do anything, but loads
  5. * wp-blog-header.php which does and tells WordPress to load the theme.
  6. *
  7. * @package WordPress
  8. */
  9.  
  10. /**
  11. * Tells WordPress to load the WordPress theme and output it.
  12. *
  13. * @var bool
  14. */
  15.  
  16. define( 'WP_USE_THEMES', true );
  17.  
  18. /** Loads the WordPress Environment and Template */
  19. require( dirname( __FILE__ ) . '/wp-blog-header.php' );
  20.  
  21. add_action( 'init', 'my_script' );
  22.  
  23. function my_script() {
  24.  
  25. // my script here
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement