Luke Seall
  • Member for 8 years, 10 months
  • Last seen this week
Missing URL in password reset email
Accepted answer
10 votes

The problem is the < and > which surround the reset URL in wp-login.php. You can remove them using retrieve_password_message in your theme functions.php file like below: add_filter("...

View answer
Wp Rest API request posts from a custom taxonomy
1 votes

So it turns out in WP 4.7 the Filter argument for any post endpoint was removed. You can add it but installing this plugin on the site that you are trying to get posts from.

View answer
Expire a user's secondary role after X days from it being allocated
1 votes

You'd need to set up a cron job using wp_cron function. I would set a custom user field with the date when the secondary role is added. Then when the cron job fires, check that date against todays ...

View answer
Rewrite permalink to include multiple taxonomies
0 votes

function custom_rewrite_rules() { add_rewrite_rule( '^art-classes/([^/]*)/([^/]*)/?$', 'index.php?product_cat=$matches[1]&location=$matches[2]', 'top' ); } ...

View answer