I used this yesterday, add to functions.php:
function ignore_new_user_autopass() {
return true;
}
add_filter( 'new_user_approve_bypass_password_reset', 'ignore_new_user_autopass' );
May not be 100% correct but it worked!
Great work @tzeldin88
Am using this in my latest project.
If you use the Make Headers Sortable chunk to target “default” columns (author, categories, tags etc.) then WP does the rest for you, even on Custom Post Types
@strozw
Thank you very much for the fix! Legendary
I have figured it out now. get_the_excerpt strips out HTML tags anyway so the Reg-ex was looking for a <h1> that wasn’t there
I used this in the end
<?php $little_excerpt = trim(substr(strip_tags(preg_replace("/(<h1>.*?<\/h1>|\[.*\])/m","",get_the_content())),0,200))."..."; ?>
Which also strips out any shortcodes 🙂