Body
The H5P Filter gives you an easy way to embed H5P activities throughout your course using a one-line "shortcode" syntax.
In any resource or activity where Moodle's editor can be used, you can insert an H5P Filter code to embed an H5P activity using its activity name, instead of using the activity's specific HTML embed code.
Filter Usage
{h5p:activity name}
You must enter the activity name exactly as it appears in the H5P activity itself (lettercase matters, no quotation marks, etc.)
e.g. If the H5P activity you want to insert is named My interactive Video, then the H5P filter code you would enter would be {h5p:My interactive Video}
Why is this better than using H5P's Embed Code?
H5P activities are created in a Moodle course's "Outline View" (the front or main page). Each H5P activity has an "<Embed>" option in the activity's footer bar, which provides HTML code that can be pasted into other web pages to reproduce an instance of the activity.
Embed codes contain an ID number that refers back to their parent H5P activity. In Moodle, course content can get imported from one shell to another every new term and the H5P activities in a course will get new ID numbers in each new copied shell. The result of this is that some embed codes will no longer refer to the H5P in their current shell (but to an old H5P in a previous shell), which course students may not have access to. The result of that will be the error message "Access denied" where an embedded H5P activity should be seen.
By referring to an H5P by its activity name instead of an ID number, the filter will find that named H5P activity in the current shell, and embed it every time.