Last active
December 21, 2015 05:39
-
-
Save wycks/6258280 to your computer and use it in GitHub Desktop.
Revisions
-
wycks revised this gist
Aug 17, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,9 @@ //just load it the way WP does include dirname(__FILE__) . '/wp-blog-header.php'; require_once(ABSPATH . 'wp-admin/includes/admin.php'); $functions = get_defined_functions(); $i = 0; //count them // set to user, we don't want internal functions foreach ($functions['user'] as $func) { -
wycks revised this gist
Aug 17, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <?php //just load it the way WP does include dirname(__FILE__) . '/wp-blog-header.php'; require_once(ABSPATH . 'wp-admin/includes/admin.php'); $functions = get_defined_functions(); -
wycks revised this gist
Aug 17, 2013 . 1 changed file with 13 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <?php //just load at the way WP does include dirname(__FILE__) . '/wp-blog-header.php'; require_once(ABSPATH . 'wp-admin/includes/admin.php'); $functions = get_defined_functions(); @@ -10,20 +10,20 @@ // set to user, we don't want internal functions foreach ($functions['user'] as $func) { $wordpressfunctions = new ReflectionFunction($func); $args = array(); $i++; foreach ( $wordpressfunctions->getParameters() as $param) { //ToDo additiona check here for array/string/etc $tmparg = ''; $tmparg.= '$' . $param->getName(); $args[] = $tmparg; unset ($tmparg); } echo $i . ' ' . $func . '(' . implode(', ', $args) . ')' . '<br>'; } ?> -
wycks created this gist
Aug 17, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ <?php //just load at the way WP does include dirname(__FILE__) . '/wp-blog-header.php'; require_once(ABSPATH . 'wp-admin/includes/admin.php'); $functions = get_defined_functions(); $i = 0; // set to user, we don't want internal functions foreach ($functions['user'] as $func) { $wordpressfunctions = new ReflectionFunction($func); $args = array(); $i++; foreach ( $wordpressfunctions->getParameters() as $param) { //ToDo additiona check here for array/string/etc $tmparg = ''; $tmparg.= '$' . $param->getName(); $args[] = $tmparg; unset ($tmparg); } echo $i . ' ' . $func . '(' . implode(', ', $args) . ')' . '<br>'; } ?>