QuestionsCategory: WP Smart TVNew Features
Habib Kamara asked 4 years ago

Hey guys,

We’re looking to add more fields to the (video) post interface portion of the plugin to allow us to pass more custom kev-value pair data points on our JSON. Basically we’re currently using the plugin for Roku DP, but we have another SDK app that requires more data fields and we’re thinking of just using this plugin for the JSON data output benefit but the only downside is not being able to pass more/custom data points.

I realize this is probably a dev question, but I thought I throw it out there anyways just in case anyone can help or have any thoughts on our situation.



1 Answers
Rob Staff answered 4 years ago

Hey Habib,

You would have to customize the feed outputs and meta data in order to do this, so you would need a developer to help you out.

Let me know if you have any further questions.


Habib Kamara replied 4 years ago

Hey Rob,

Really appreciate the fast response here.

We do have a developer to do it, but the WP Smart TV plugin is completely new to them, so I was just wondering if there were any pointers or tips that you can maybe provide that I can pass to them so they're able to customize it faster.

Also, from my understanding, after we customize the plugin, if you guys release an update and we update our customized version to the latest version you release, all our customization will be deleted right? If so, is there a way around this (to keep customization and continue to update plugin)?

Many thanks,

Rob Staff replied 4 years ago

Here’s some info for your developer:

– All meta fields are generated by CMB2, you can find them in the “includes/class-wp-smart-tv-content-meta.php” file.
– All feeds are generated using the default WP REST system. You can find all the generators in “includes/builders/class-wp-smart-tv-roku-dp.php”

As for customizing the plugin, yes, that would be an issue. You could setup a custom plugin that contains the code changes, though it may cause problems when we update the main WP Smart TV plugin.