Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rocco Aliberti

    (@d4z_c0nf)

    Hello t2m,
    to keep the plugin as simple as possible I tried to avoid adding settings page, so this is not possible at the moment without changing the code.
    Anyway the change to do in your case is pretty easy:
    put this (or something equivalent – take a look at the network admin role caps )

    if ( is_multisite() && ! current_user_can('manage_network_themes') )
      return;

    at this line ->
    https://github.com/eri-trabiccolo/childify-me/blob/master/childify-me.php#L53

    Hope this helps

    p.s.
    be sure to not make errors while copy pasting that line, or test it in local / make a backup. Well as network admin you sure now how to manage your site ??

    Thread Starter t2m

    (@t2m)

    Hi d4z_c0nf

    Thanks for your help. I’m not sure why but I didn’t get the follow-up mail. Anyway, that works and thanks for that!

    I, however, have another question or rather a request. Can’t you add some filter at that line so that one could add the code you provided into functions.php. This is recommended if we want our changes to servive plugin updates.
    ??
    Thanks!

    Plugin Author Rocco Aliberti

    (@d4z_c0nf)

    Glad to hear that.
    The problem with the request is that .. well to achieve that you should add the add_filter in the fuctions.php of the parent theme, of any parent theme you wish to “childify” .. so don’t think is the perfect solution.
    I should think about some kind of easy to use way. A setting page just for that looks too much. Maybe I can think at some config file.
    Will let you know ??

    Thanks for your feedback, much appreciated!

    Rocco

    Thread Starter t2m

    (@t2m)

    Yes you have point and my request is misplaced. It is rather specific requirement and of course is not wise to add complexity just for that.

    Thanks for listening though. Even that’s also a great thing.
    ??

    Have a nice weekend!

    Plugin Author Rocco Aliberti

    (@d4z_c0nf)

    Thanks! ??
    Have a nice weekend you too..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show Childify Me button only to the networkadmin’ is closed to new replies.