• Resolved puiz

    (@puiz)


    Hi,

    I’m using the H5P plugin in my WordPress site (to be more precise, the Interactive Video element) and if I’m not wrong it is not possible to print the view count in the WordPress page (like YouTube or any video website).

    Do you know if there is a possibility to do that? For example with a third party plugin or anything else? I find that it can be an interesting functionnality!

    Thanks a lot in advance,
    Best regards

Viewing 1 replies (of 1 total)
  • Plugin Author icc0rz

    (@icc0rz)

    You should be able to do this in a custom theme or plugin by implementing one of the action hooks and just counting and storing the number of calls, e.g.

    function h5pmods_alter_scripts(&$scripts, $libraries, $embed_type) {
      set_option('mycount', get_option('mycount', 0) + 1);
    }
    add_action('h5p_alter_library_scripts', 'h5pmods_alter_scripts', 10, 3);
Viewing 1 replies (of 1 total)
  • The topic ‘View count of Interactive Video’ is closed to new replies.