Created
December 6, 2014 11:59
-
-
Save traversal/ba1244ef052ecc7aa05f to your computer and use it in GitHub Desktop.
Init Function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// place this inside functions.php | |
function my_function() { | |
global $wf; | |
// should be able to loop over post types, for example | |
foreach ( $wf->post_types as $pt ) { | |
} | |
// ... or access a specific one | |
$type = $wf->type("product"); | |
} | |
add_action('mp_init', 'my_function'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment