• Resolved Anonymous User 7600456

    (@anonymized-7600456)


    Hi,

    Thanks for creating a great plugin. I have a feature request. We would like to use this plugin on a site to allow access to premium content based on user role.

    It would make our internal training easier if we could customise the [eyesonly][/eyesonly] shortcodes to something custom like:

    [premiumcontent][/premiumcontent]

    I realise we could modify the plugin ourselves but then we would have to keep track of updates and would not be able to simply update when you improve the plugin.

    Please could you consider adding this feature?

    Best,

    Joseph

    https://ww.wp.xz.cn/plugins/eyes-only-user-access-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thomstark

    (@thomstark)

    Add the following to your theme’s functions.php or to your own plugin:

    if (function_exists('sc_eyesonly')) add_shortcode('premiumcontent', 'sc_eyesonly');

    Thread Starter Anonymous User 7600456

    (@anonymized-7600456)

    That is fantastic. Thank you!

    Plugin Author thomstark

    (@thomstark)

    No problem, sir.

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

The topic ‘Feature request – custom shortcode name’ is closed to new replies.