The easiest way to create a list of all the PHP functions Wordpress makes available, IMHO, is to do the following three (pretty easy) steps:
<?php
function show_me_the_available_functions() {
$x = get_defined_functions();
foreach ($x[user] as $y) {
print "$y" . "<br/>";
}
}
show_me_the_available_functions();
?>Now go Visit the site
.
Note: Although the above code is pretty simple, the output is kind of "not pretty" -- if you want that list to only show up for site admins, etc., use this code instead (which also looks nicer):
<?php
function show_me_the_available_functions() {
if (is_admin() || current_user_can('manage_options')) {
$x = get_defined_functions();
echo '<ul>Available WP Functions:';
foreach ($x[user] as $y) {
echo '<li>' . $y . '()</li>';
}
echo '</ul>';
}
}
show_me_the_available_functions();
?>
Post new comment