Note you’re adding code that will be executed outside “the loop”, therefore you’ll need to refer to the current post ID with the $post->id variable – most WordPress functions and plugins will be accessible with custom code.
Here are some frequent uses for the editor:
- Showing featured images in the article screen
- Adding a custom field to the article screen
- Adding videos to the article screen