WP Mail SMTP Plugin Fails Certificate Verification [closed]

The issue turned out to be the Norton 360 antivirus program I am running! It seems Norton recently changed the behavior of their right-click “Disable Auto-Protect” (11/2024). In the past, when this option was selected, every function associated with Auto-Protect would be disabled, including email scanning. That’s not the case any longer. Now, when this … Read more

.HTML POST extension for custom post type – DRAFT – PREVIEW

Here is a simple solution, if post have DRAFT status – we show a “normal” do not rewrited “URL”. add_filter( ‘post_type_link’, ‘custom_post_permalink’ ); // for cpt post_type_link (rather than post_link) function custom_post_permalink ( $post_link ) { global $post; $type = get_post_type( $post->ID ); $post_status = get_post_status( $post->ID ); //get POST STATUS if($post_status != “draft”) { … Read more

Redirect after sign up with woocommerce form with role choice [closed]

user_register hook fires immediately after a new user is registered. so you have to add action on this hook. You can add below example code in your active theme’s function file. Example : add_action( ‘user_register’, ‘redirect_user_based_on_role’, 10, 1 ); function redirect_user_based_on_role( $user_id ) { // Get the user object. $user = get_userdata( $user_id ); // … Read more

how can I properly extend the gutenberg terms block?

It seems like you’re not using a build step to process your custom-terms-block.js. This means you cannot use JSX syntax. Instead, you should replace all instances of JSX with React.createElement(): edit: (props) => { const { terms } = props.attributes; // Fetch terms and their associated ACF brand_logo fields const [taxonomyTerms, error] = useEntityProp(“taxonomy”, “category”, … Read more

Rewrite standard $errors messages output via function.php

Try this on function.php <?php add_filter(‘login_errors’, ‘custom_login_error_messages’); function custom_login_error_messages($error) { if (strpos($error, ‘Invalid email address’) !== false) { return ‘The email address you entered is not valid. Please try again.’; } elseif (strpos($error, ‘Lost your password?’) !== false) { return ‘Please click the “Forgot Password” link to reset your password.’; } return ‘Login failed. Please … Read more

Category page 2 url doesn’t exist

The answer is to use pre_get_posts. See WordPress Pagination not displaying posts after certain page As Milo says “WordPress determines if a paginated page exists based on the results of the main query”. I was using a custom query that was setting posts_per_page to 5 but in Settings this value was set to 10. Using … Read more

wp_get_post_terms not working as expected

I misunderstood what you were trying to do before. I thought you wanted to list the terms associated with one particular post – the one you are on. Whoops! Try this instead: $terms = get_terms(‘fruit_category’); if(!empty($terms)){ echo “<ul>”; foreach ( $terms as $term ) { echo ‘<li><a href=”‘.get_term_link($term->slug, ‘fruit_categories’).'”>’. $term->name . “</a></li>”; } echo “</ul>”; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)