muneebkiani
Forum Replies Created
-
UM Settings -> General -> Users -> “Registration Default Role”?
Subscriber
M User Roles -> Edit “Registration Default Role ” -> “Registration options”?
yes
Just signup and this user is approved by default
Forum: Plugins
In reply to: [The Events Calendar] Purchaser emailHi, ignore above message.
and thanks for your support
Forum: Plugins
In reply to: [The Events Calendar] Purchaser emailHi,
Thanks for your reply. After logging out, the email info is correct on the thank-you message and the backend, but the purchaser is not receiving any confirmation email.
(The ticket price is 0 )
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Taxonomy TermsThanks a lot, indeed the issue was with the “Load Terms” which I overlooked.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Taxonomy TermsThanks for the comprehensive reply. I managed to pinpoint the issue. If you select the dropdown (in settings) along with stylized UI, it returns values from all other “Taxonomy Terms” fields on the page.
So actually it is not return all term but merging output of fields (if Stylized UI option is selected)
- This reply was modified 1 year, 9 months ago by muneebkiani.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Taxonomy TermsYes, and also tried with addition of post id, get_field( ‘my_taxonomy_terms’, $id );
Forum: Plugins
In reply to: [Tiered Pricing Table for WooCommerce] Specific Categoryok. Thanks for the reply.
the shop that I am working on, there are several products, and only some specific products (2) require tiered pricing, therefore it doesn’t make sense to show a tiered pricing meta box for all products.Forum: Plugins
In reply to: [Tiered Pricing Table for WooCommerce] Specific CategoryI have several categories in the shop, but only one category requires tiered pricing. So is it possible to hide the tiered pricing meta box for the categories where I don’t need this feature?
Thanks
Forum: Reviews
In reply to: [Gutenberg] I disable Gutenberg on every site I launchbut you gave like 5 start rating, i guess by mistake
neverminded, the issue was within my code,
I had updated the meta query using:
add_action('pre_get_users', 'modify_user_list');and the meta values were overriding the wp user query in the following function
private function get_emails_from_id( $user_ids ) { $email_list = array(); if ( is_array( $user_ids ) && count( $user_ids ) > 0 ) { $user_query = new WP_User_Query( array( 'include' => array(1) ) ); foreach ( $user_query->results as $user ) { $email_list[] = $user->user_email; } } return $email_list; }Forum: Plugins
In reply to: [Contact Form 7] Textarea Line breaks Emailthanks for your reply, I managed to solve the issue with help of the pre tag. The email out now exactly matches the spaces and line break of the textarea.
- This reply was modified 4 years, 5 months ago by muneebkiani.
Thanks for your reply, text email issue has been resolved also.
regarding the filter, I was referring to functions like this:/** * Send new user registration notification email. * * @since 1.1 * @param array $setting Notification setting * @param object $user User object * @param string $password_url Plain text password in WP < 4.3 and password url in WP > 4.3 */ public function send_registration_email( $setting, $user, $password_url = '' ) { /** * Whether to trigger welcome email notification or not. * * @since 1.7 */ $trigger_notification = apply_filters( 'bnfw_trigger_welcome-email_notification', true, $setting, $user ); if ( ! $trigger_notification ) { return; } $user_id = $user->ID; $subject = $this->handle_shortcodes( $setting[ 'subject' ], $setting[ 'notification' ], $user_id ); $message = $this->handle_shortcodes( $setting[ 'message' ], $setting[ 'notification' ], $user_id ); $subject = str_replace( '[password]', $password_url, $subject ); $message = str_replace( '[password]', $password_url, $message ); $subject = str_replace( '[password_url]', $password_url, $subject ); $message = str_replace( '[password_url]', $password_url, $message ); $subject = str_replace( '[login_url]', wp_login_url(), $subject ); $message = str_replace( '[login_url]', wp_login_url(), $message ); if ( 'true' != $setting[ 'disable-autop' ] && 'html' == $setting[ 'email-formatting' ] ) { $message = wpautop( $message ); } $headers = array(); if ( 'html' == $setting[ 'email-formatting' ] ) { $headers[] = 'Content-type: text/html'; $message = apply_filters( 'bnfw_registration_email_message', $message, $setting ); } elseif ( 'text' == $setting[ 'email-formatting' ] ) { $message = strip_tags( $message ); } $subject = $this->handle_global_user_shortcodes( $subject, $user->user_email ); $message = $this->handle_global_user_shortcodes( $message, $user->user_email ); wp_mail( $user->user_email, stripslashes( $subject ), $message, $headers ); }there is no way to override the reply-to header for a specific notification. I have managed to reset reply-to globally as a workaround for now. thanks for all the support.
- This reply was modified 4 years, 5 months ago by muneebkiani.
- This reply was modified 4 years, 5 months ago by muneebkiani. Reason: code block update
I managed to fix the issue with the help of the following filter but it would really helpful if you add bn specific plugin so we can override headers only for specific notifications
function pixel_mod_reply_email($args){ $headers[] = 'Content-type: text/html'; $headers[] = 'Reply-To: vertrieb <[email protected]>'; $args['headers'] = $headers; return $args; } add_filter('wp_mail','pixel_mod_reply_email', 10,2);sorry, I already have these filters but what I need is different from email and reply-to-email.
I have another small issue. for email (notification=email-changed) the email is always in plain text, despite setting it in HTML. I checked the received email and it states the content-type header is set to plain text.- This reply was modified 4 years, 6 months ago by muneebkiani.
- This reply was modified 4 years, 6 months ago by muneebkiani.