only-for-registerd-users plugin colour change and suppression of login and reg
-
I am using only-for-registered-users plugin and would like to change the colour of the message displayed to “public” users attempting access to subscriber space.
I would also like to remove the login and register options from the message.
I have looked at the php script, but not understanding the following line:
return '<code style="color:red;border:1px solid red;padding: 3px;">'.sprintf(__("Content is available only for registered users. Please <a href='%s'>login</a> or <a href='%s'>register</a>","regUserOnly"),wp_login_url( $current_url ),wp_registration_url()).'</code>'
This seems to return the output from .sprintf which has colour and border parameters piped into it, as well as being executed with embedded login and register prompts and links.
Is .sprintf a plugin specific function?I would like to retain the bordered text, change the colour and remove the login and register linkages used in this plugin.
- The topic ‘only-for-registerd-users plugin colour change and suppression of login and reg’ is closed to new replies.