WordPress default contact form
While Jetpack is a plugin, it’s developed by WordPress and has contact forms as standard. There are some other useful features such as stats, etc. so it’s definitely worth a look. https://jetpack.com/
While Jetpack is a plugin, it’s developed by WordPress and has contact forms as standard. There are some other useful features such as stats, etc. so it’s definitely worth a look. https://jetpack.com/
You can see here a list of roles and capabilities, if you want to check if the user has a certain role, you can: $the_user = wp_get_current_user();//we get the current user if ( in_array( ‘the_name_of_your_role’, (array) $the_user->roles ) ) { //the user has the rol, add the submenu here } you can use current_user_can if … Read more
If you have the username then you should be able to get the user using the get_user_by function, which will return the user object https://developer.wordpress.org/reference/functions/get_user_by/ $user = get_user_by(field, value);
Please refer to the link below and read on how to use add_action correctly. https://developer.wordpress.org/reference/functions/add_action/ add_action(‘wishlistmember_shoppingcart_register’, ‘get_member_info’)); function get_member_info() { // Debug $_POST. echo ‘<pre>’; var_dump($_POST); exit; }
Did you clear cache after making changes with trim()? Try with: str_replace( trim( $parent->name ), $link, $intro_text ); Are you sure that the term is Upbeat Electronic music and not UpbeatElectronic music? Try with this to be sure: str_replace( trim( $parent->name ), ‘ ‘ . $link, $intro_text );
Yes, I think your quotes after the WHERE are backwards. Try it like this: …$fields.’ WHERE wp_users.ID=’.$current_user->ID ); The “WHERE wp_users.ID=” part is plain text that is intended to be part of the query, so it needs to be in quotes. The $current_user->ID is a variable that should live outside the quotes. If that doesn’t … Read more
Turns out the site had been hacked. I understand this is pretty common with wordpress. Anyway we signed up for a plan with the nice folks at WPEngine. The site would run for just long enough to run their simple migration tool, and once they had it on their servers their impressive support kicked in. … Read more
Sorted as follows: <div class=”auth-name”> <?php echo $curauth->nickname; ?> </div> <div class=”auth-desc”> <?php echo $curauth->description; ?> </div>
This issue was resolved by clearing the browser cache and using Chrome incognito mode when necessary.
Assuming you would put this in a woocommerce template file, wherever you want it to display: <?php global $product; $regular_price = esc_attr( $product->get_display_price() ); $discount = 20; $currency = esc_attr( get_woocommerce_currency() ); $new_price = ($regular_price * $discount) / 100; echo ‘Get this product for ‘.$new_price.$currency.’ with (Promo code)’; ?> Untested, but should do the trick.