• Resolved ekaboom

    (@ekaboom)


    How hard is it to load the demo content from a custom plugin rather than the theme?

    Is it the exact same process or does it need to be done another way?

    I’m also curious if It would be possible to have multiple sets of demos in separate plugins that could be installed at the same time?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ekaboom

    (@ekaboom)

    FYI

    So I tested this and the demo gallery will execute from a plugin just like it will from a theme.

    I’m still curious if there is a way to have multiple sets of demos in separate plugins that can be installed at the same time.

    I can add more than 1 plugin of importable content by changing the function name but the issue is that OCDI only sees one of the plugins with demo import files, not both.

    I’m assuming that it’s only using the last function using the filter:
    ‘pt-ocdi/import_files’

    Any way around this so I can have multiple plugins holding different sets of demo content?

    Hi,

    I am quite sure that this should work nicely as you’ve described it with multiple plugins setting up different configurations. Tho I haven’t tested it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Execute OCDI from plugin’ is closed to new replies.