Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function list_my_plugins(){
- $plugins = get_plugins();
- $output = '<ul>';
- foreach ( $plugins as $plugin ){
- $output .= '<li>' . $plugin['Name'] . '</li>';
- }
- $output .= '</ul>';
- return $output;
- }
- add_shortcode('list-my-plugins', 'list_my_plugins');
Add Comment
Please, Sign In to add comment