• Hi,

    When editing a video, under “Video Embed Options”, the current default “Insert” value is “Single Video”. I would like this value to be “WordPress Default” by default since I prefer using the default WordPress shortcote.

    Is there any way to do this? If not, could you add this option to a future version of the plugin? I believe it would be really helpful.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter janvitos

    (@janvitos)

    I found the line of code that handles this. It is line 321 and 322 in videopack-admin.php:

    $meta_key_array = array(
        'embed' => 'Single Video',

    We can replace this with the following code to add a filter and choose the value we desire:

    $embed_value = apply_filters( 'kgvid_default_embed_value', 'Single Video' );
    $meta_key_array = array(
        'embed' => $embed_value,

    Or you could add an option in the plugin settings to make it more convenient for less technical users.

    Cheers.

    • This reply was modified 1 year, 4 months ago by janvitos.
    • This reply was modified 1 year, 4 months ago by janvitos.
    Plugin Author Kyle Gilman

    (@kylegilman)

    Oh wow. It’s probably been almost a decade since I checked into how WordPress usually inserts videos and I can see why you’d prefer the current system. In the old days my plugin was always an improvement. I’ll work on adding an option to the next release.

    Thread Starter janvitos

    (@janvitos)

    Please don’t take my request as a dislike of your plugin. I find it very useful for other things like video thumbnail generation and customization. I just prefer to keep things as default as possible with my WordPress install.

    Thanks for this great plugin! It really is one of a kind.

    Thread Starter janvitos

    (@janvitos)

    Hi,

    I noticed you released a new version of the plugin. Did you have a chance to add this option to it? I don’t see it in the release notes.

    If not, it’s no problem, I’ll update and add my code back for the time being.

    Thanks!

    Plugin Author Kyle Gilman

    (@kylegilman)

    I did not! I forgot all about this. I’ve added an issue on GitHub so I don’t forget in the next release.

    Thread Starter janvitos

    (@janvitos)

    I didn’t know you had a Github. Would’ve posted there instead ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Set “WordPress Default” as default “Insert” value for video’ is closed to new replies.