Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. define('SHORTINIT', true);
  3. require '/path/to/wp-load.php';
  4. // you'll have the basic API here, including `get_option`. Do stuff.
  5.  
  6. // EXAMPLE
  7. function MyFuncion(){
  8. if (isset($_POST['mynamee'])) { echo get_option('my_nm');}
  9. }
  10.  
  11. //===================Then====================
  12. //1) Execute directly
  13. MyFunction();
  14. //========OR=========
  15. //2) Hook into the EARLIEST ACTION:
  16. add_action('muplugins_loaded', 'MyFunction',1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement