Hook into all password resets in WordPress and get password before hashing?

Use the password_reset hook. function wpse_password_reset( $user, $new_pass ) { //* Do something useful with $new_pass } add_action( ‘password_reset’, ‘wpse_password_reset’, 10, 2 ); Edited to add after the comment: Looks like the reason I can’t use that is that the plugin uses wp_update_user to set the new password. Is there any way I can intercept … Read more

How can i style “echo apply_filters”

apply_filters just calls any methods hooked to the filter, in this case woocommerce_attribute, and returns the output. You could do a couple of things to style this, here’s one way: $filtered = apply_filters( ‘woocommerce_attribute’, wpautop( wptexturize( implode( ‘, ‘, $values ) ) ), $attribute, $values ); echo ‘<span class=”attribute-‘ . esc_attr( $attribute ) . “>’ … Read more

Styling a specific post after hovering over it

I’m not sure why this question is related to WordPress, but you should be able to accomplish what you’re after with just CSS as demonstrated in the following Codepen. In case something happens to that, the code is copied here. HTML <div class=”wrapper”> <a href=”#”> <article class=”has-featured-image”> <div class=”post-title”>Title</div> <div class=”post-excerpt”>This is an example excerpt. … Read more

Ajax call to php function doesn’t work PHP code

It looks like the MBAjax.ajaxurl and MBAjax.admin_url are probably not set. If it can’t post to the correct WordPress handler, then you will probably get a 404 page HTML returned instead of the PHP function return value. You can test by hard-coding the ajax url to url: “/wp-admin/admin-ajax.php”, and see if that fixes things. Secondly, … Read more

custom post type column countdown

Although your question looks more like a generic javascript question than WordPress specific and would probably be better suited for another forum like stackoverflow.com, I would say the problem in your code is that you’re using id=”countdown” for all the countdown elements. You should use class=”countdown” if you want to use the element multiple times … Read more

Change Search display for Custom Post Type

Try below code function mitgliederbereich_filter_search($query) { global $post; global $wp_post_types; if ($post->post_type == “mitgliederbereich”) { $wp_post_types[‘mitgliederbereich’]->exclude_from_search = false; } else { $wp_post_types[‘mitgliederbereich’]->exclude_from_search = true; } } add_filter(‘pre_get_posts’, ‘mitgliederbereich_filter_search’); Hope this helps.