SHARE
TWEET

Untitled

a guest Jun 25th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top