Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('SHORTINIT', true);
- require '/path/to/wp-load.php';
- // you'll have the basic API here, including `get_option`. Do stuff.
- // EXAMPLE
- function MyFuncion(){
- if (isset($_POST['mynamee'])) { echo get_option('my_nm');}
- }
- //===================Then====================
- //1) Execute directly
- MyFunction();
- //========OR=========
- //2) Hook into the EARLIEST ACTION:
- add_action('muplugins_loaded', 'MyFunction',1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement