Allow users to disable/tune some plugins (6 posts)

  1. SAnton
    Posted 8 years ago #

    I made a plugin which post-filter all texts on the WordPress blog.

    In my case this is automatic hyphenation. I use "text-align: justify;", so, without hyphenations spaces in text vary in sizes. But not all people like when there are many hyphen-signs (-) at the right. There can be users who prefer spaces with variable sizes.

    What is the simplest way to allow users to disable this plugin for themselves, or (preferable) to switch it to a simple mode, when words hyphenated only by double letters?

    P.S. If you are interested in, this is hyphenation example (russian text):

    There are about 5000 hyphenation rules considered. No regular expressions used. Only specially designed tree structure which allow performance independent of the hyphenation rules count.

    Please do not criticize severely, I just started to make my site.

  2. Roger Theriault
    Posted 8 years ago #

    Set up a settings page with the various options, if you feel they are the kinds of things that could be applied site-wide. Then in your plugin code, check the option setting to decide how to handle things.

  3. SAnton
    Posted 8 years ago #

    I want plugin settings be different for different users of a single site, not for different sites.

  4. Roger Theriault
    Posted 8 years ago #

    Ah, those users... sorry. Well, I came across this article which touched on it in Chapter 8. (Although some techniques seem a bit dated now, still a good reference)


  5. alanft
    Posted 8 years ago #

    you could add code in your plugin to add checks on usermeta fields using code like on http://codex.wordpress.org/Function_Reference/get_usermeta

    you can expose usermeta fields on user's profile pages using


  6. SAnton
    Posted 8 years ago #

    Thank you.
    These links are really useful!

Topic Closed

This topic has been closed to new replies.

About this Topic