• Resolved amin

    (@aminsg)


    Hello
    I have a site with about 4 thousand products and I used the default WordPress video player for all products
    Is there a way to replace all players from the database with Videojs HTML5 Player?
    Due to the number of products, editing one by one will be very time-consuming

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter amin

    (@aminsg)

    hi i build the code
    if anyone need it

    UPDATEwp_postsSETpost_content`=replace(post_content, ‘<!– wp:video –>’,'<!– wp:html –>’) ;

    UPDATE wp_posts SET post_content=replace(post_content, ‘<video controls preload=”none” src=’,'[videojs_video url=’) ;

    UPDATE wp_posts SET post_content=replace(post_content, ‘></video>’,’ preload=”metadata”]’) ;

    UPDATE wp_posts SET post_content=replace(post_content, ‘<!– /wp:video –>’,'<!– /wp:html –>’) ;`

Viewing 1 replies (of 1 total)
  • The topic ‘change all video player to videojs_video’ is closed to new replies.