Tag: str_replace
-
Removing line breaks and tabs from generated HTML for easier str_replace
For WP-Members users who want to do heavy customization to the plugin’s default forms, the PHP str_replace function can be both your best friend and your arch nemesis.
-
Move form label for checkboxes with a filter
Suppose you want to move the text label for a checkbox the default layout of the registration form. You would like to move it to be to the right of the checkbox. How can that be done? The WP-Members registration form has a basic default layout. This is necessary for it to be functional in…
-
Working with Templates: Block a Category Archive Loop Advanced
This post builds on the example we looked at in Working with Templates: Block a Category Archive Loop. That example describes how to replace the results of the loop with a message directing the user to login. Instead of replacing with a message, this example will show you how to replace with the WP-Members login…
-
Remove an unparsed wpmem_txt shortcode
The wpmem_txt shortcode is something that WP-Members puts in on the fly and its purpose is to prevent WordPress from putting line breaks (<p> and <br /> via the wpautop and wptexturize functions) into the form, thus throwing off the layout. This is one of those magic things that runs in the background that no…
-
Add a helpful dialog above the password reset form
Suppose you want to add a little text above the password reset form that will help the user know what to do – in this case, put in your username and email and you’ll receive an email with a new password. Here is an easy way to do that with the wpmem_login_form filter.