• It looks like the developer documentation for adding new shortcodes to the pagebuilder is not up to date.
    http://www.woorockets.com/docs/wr-pagebuilder-user-manual/

    I can’t seem to be able to add any shortcodes other than helloworld. From my tests, I can’t seem to find any reference to an array of short codes registered anywhere in the plugin. Registering new plugins in main.php or define.php doesn’t seem to make a difference.

    If I change the name of a current plugin like divider to dividers where the folder, php file, if and the class name all say dividers the shortcode stops working.

    How can I add new shortcodes to the plugin?

    https://ww.wp.xz.cn/plugins/wr-pagebuilder/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Adam

    (@hieudm)

    Hi @nwp_developer,

    We have just updated the documentation and sample addon package so you can have a look, please recheck.

    Best regards,

    Adam.

    Thread Starter nwp_developer

    (@nwp_developer)

    Hi Adam.
    Thanks for the update. I think the reason why the adding new shortcodes only works intermittently is because the shortcodes are not being updated regularly when wr_pagebuilder is launched.

    Is there a way to reload the shortcodes without having to uninstall or deactivate the plugin? It doesn’t look like the option _wp_pb_reload_shortcodes is working when set to true.

    If not can you point me in the right direction to modify this?

    Cheers

    Plugin Contributor Adam

    (@hieudm)

    Hi @nwp_developer,

    As you can see in the documentation, the custom element should be implemented as WR PageBuilder addon (just play around with the sample addon package and you will see).

    So there’s no need to uninstall / deactivate the WR PageBuilder, just deactivate the addon plugin if you got any problem.

    Hi Adam,
    I am having similar issues as @nwp_developer in adding new shortcodes via the sample addon package you provided on your site. It seems there’s a problem in loading the newly created shortcodes in the page builder.

    Can you please provide a fix or a clue on how can we fix this issue.

    I tried several times with the sample code and it doesn’t work as expected.

    Best Regards,
    Masum

    Plugin Contributor Adam

    (@hieudm)

    Hi @nwp_developer, @themasumhossain,

    Actually, at the moment we’re still working with the plugin core so the addon function might not work 100% perfectly with additional shortcodes.

    At first, we’re finishing all remaining necessary bug fixes and core improvement then we will check the shortcode function. Please keep in touch with use via social channel or subscribe to plugin repository to get notification when the code is updated.

    Best regards,

    Adam.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding shortcodes’ is closed to new replies.