Interactive Content 1.17.10 has 6 actions and 5 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Interactive Content fires an action
add_action( 'h5p_additional_embed_head_tags', function( $additional_embed_head_tags ) {
// Your code runs here.
}, 10, 1 );
// Change a value Interactive Content is about to use
add_filter( 'h5p_embed_access', function( $embed_allowed, $id ) {
// Change $embed_allowed here.
return $embed_allowed;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Add support for additional head tags for embedded content. Very useful when * adding xAPI events tracking code. */ do_action_ref_array( 'h5p_additional_embed_head_tags', array(&$additional_embed_head_tags) ); -
/** * Allows you to alter the H5P content parameters after they have been * filtered. This hook only fires before view. */ do_action_ref_array( 'h5p_alter_filtered_parameters', array(&$decoded_parameters, $content['library']['name'], $content['library']['majorVersion'], $content['library']['minorVersion']) ); -
h5p_alter_library_scripts
action/** * Allows you to alter which JavaScripts are loaded for H5P. This is useful for * adding your own custom scripts or replacing existing once. */ do_action_ref_array( 'h5p_alter_library_scripts', array(&$files['scripts'], $libraries, $embed) ); -
h5p_alter_library_semantics
action/** * Allows you to alter the H5P library semantics, i.e. changing how the editor * looks and how content parameters are filtered. */ do_action_ref_array( 'h5p_alter_library_semantics', array(&$semantics, $name, $majorVersion, $minorVersion) ); -
h5p_alter_library_styles
action/** * Allows you to alter which stylesheets are loaded for H5P. This is useful for * adding your own custom stylesheets or replacing existing once. */ do_action_ref_array( 'h5p_alter_library_styles', array(&$files['styles'], $libraries, $embed) ); -
h5p_alter_user_result
action/** * Allows you to alter a user's submitted result for a given H5P content This * action is fired before the result is saved. */ do_action_ref_array( 'h5p_alter_user_result', array(&$data, $result_id, $content_id, $user_id) ); -
h5p_embed_access
filter/** * Allows other plugins to change the access permission for the embedded * iframe's content. */ apply_filters( 'h5p_embed_access', $embed_allowed, $id ); -
attribute_escape
filterapply_filters( 'attribute_escape', $safe_text, $parameters ); -
h5p_rest_api_all_permission
filterapply_filters( 'h5p_rest_api_all_permission', current_user_can('edit_others_h5p_contents') ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), $domain ); -
print_h5p_content
filterapply_filters( 'print_h5p_content', $h5p_content_wrapper, $content );
Generated from Interactive Content's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: