powerpress_player hook expectations
-
I may simply be misunderstanding the documentation, so please help clarify how this is meant to work.
In the documentation for the
powerpress_playerhook, it states that the first param contains theHTML content for the player.Running a simple example, the param seems to return nothing.function append_powerpress_player_markup( $content, $media_url, $episode_data) { // what is the value of content? print $content; return $content; } add_filter( 'powerpress_player', 'append_powerpress_player_markup', 10, 3 );The
$contentparam is always null. If I change my Powerpress settings to use the HTML5 player or the MediaElement player, the value is still null.I assume this is user error (me) but I am not sure what I am doing wrong or what I should be expecting?
My primary goal is to inspect the
$episode_datafor an image and then append that as its own DIV to the player HTML. This is very possible if the$contentparam had the expected value.Any and all help is appreciated!
The page I need help with: [log in to see the link]
The topic ‘powerpress_player hook expectations’ is closed to new replies.