Created
April 16, 2022 16:25
-
-
Save fahdi/573a69c426c24b474cb65e73af7b6658 to your computer and use it in GitHub Desktop.
Your next assignment - WP Plugin dev
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 characters
| <?php | |
| /* | |
| Plugin Name: Hello World New | |
| */ | |
| function hello_world_new() { | |
| return '<p>Hello World!</p>'; | |
| } | |
| add_shortcode( 'hello_world_new', 'hello_world_new' ); | |
| add_shortcode( 'hello_world_short', 'hello_world_new' ); | |
| add_action( 'footer', 'hello_world_new_menu' ); | |
| /* Assignment * | |
| // TODO: Use add_filter() to add a filter to the hello_world_new shortcode or dop anything with add_filter. | |
| // add_filter( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment