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 2 years ago by
janvitos.
-
This reply was modified 2 years ago by
janvitos.
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.
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.
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!
I did not! I forgot all about this. I’ve added an issue on GitHub so I don’t forget in the next release.
I didn’t know you had a Github. Would’ve posted there instead 🙂