• Resolved tryagain3

    (@tryagain3)


    I wonder if I can create a PHP code to specify all the Pods settings (pages/custom posts/fields)
    so once the client active my plugin/theme will get all the necessary results?

    Is it legal to use the Pods plugin files in my theme/plugin code (so the client doesn’t need to install it the normal way )?

    • This topic was modified 3 years, 10 months ago by tryagain3.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Bernhard Gronau

    (@quasel)

    Hi,

    pods is open source – you can do whatever you want with it as long as you honor the GPL licence! That been said it’s not a good idea to bundle it within your code it’s better to use tools like – https://tgmpluginactivation.com – to require it!

    You can use code to create some of the pods configuration but that’s very limited and currently not supported! If you take a look at the export/import component it might give you an idea how to work around that!

    Code based configurations might be happen in the future but there is currently no roadmap to it ??

    Good Luck!

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    1. You can create configurations with Pods using Packages. You can import these packages on activation / init of your code. There’s a pull request with lots of work done so far in our efforts around code-based configuration files (.yml / .json) for an upcoming release (not set for a specific version, but when it’s ready, it’ll go right out). For now you can use something like pods_api()->import_package( $package ) — only do this once or it will just keep running on every page load.

    2. It is legal yes, but not recommended. The best reason it’s not recommended and definitely unsavory — ANY time I see this done, I use a different solution — if any “included” plugin has a security release that absolutely needs to go out, none of the people running that code can get updated to that. It doesn’t happen often, but this is WordPress and we plan for those sort of things and how to best mitigate them. Including the code directly in your own theme/product would remove the ability to get those kind of fixes out quickly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I Use pods in my theme/plugin without any extra client efforts’ is closed to new replies.