stephenoconnor
Forum Replies Created
-
Hey thanks Mrinal – i couldn’t find the shipping method key – I have these options – which one is it?
_3DSecureStatus
_AddressResult
_av_css_styles
_AVSCV2
_billing_address_1
_billing_address_2
_billing_address_index
_billing_city
_billing_company
_billing_country
_billing_email
_billing_first_name
_billing_last_name
_billing_phone
_billing_postcode
_billing_state
_cart_discount
_cart_discount_tax
_cart_hash
_completed_date
_created_via
_customer_ip_address
_customer_user
_customer_user_agent
_CV2Result
_date_completed
_date_paid
_download_permissions_granted
_edit_last
_edit_lock
_new_order_email_sent
_opayo_errors
_order_currency
_order_key
_order_shipping
_order_shipping_tax
_order_stock_reduced
_order_tax
_order_total
_order_version
_paid_date
_payment_method
_payment_method_title
_PostCodeResult
_prices_include_tax
_recorded_coupon_usage_counts
_recorded_sales
_sageresult
_shipping_address_1
_shipping_address_2
_shipping_address_index
_shipping_city
_shipping_company
_shipping_country
_shipping_first_name
_shipping_last_name
_shipping_postcode
_shipping_state
_transaction_id
_TxAuthNo
_VPSTxId
_wp_desired_post_slug
_wp_trash_meta_comments_status
_wp_trash_meta_status
_wp_trash_meta_time
is_vat_exempt
wpifw_invoice_noForum: Plugins
In reply to: [Yoast SEO] Disable Yoast on pages with particular string in URLi suppose it will be
<?php add_action( 'template_redirect', 'remove_wpseo' ); /** * Removes output from Yoast SEO on the frontend for a specific post, page or custom post type. */ function remove_wpseo() { if (strpos($_SERVER['REQUEST_URI'], "/places/") !== false){ $front_end = YoastSEO()->classes->get( Yoast\WP\SEO\Integrations\Front_End_Integration::class ); remove_action( 'wpseo_head', [ $front_end, 'present_head' ], -9999 ); } } ?>
thanks anyway
Forum: Plugins
In reply to: [Yoast SEO] Disable Yoast on pages with particular string in URLAny feedback?
Forum: Plugins
In reply to: [Yoast SEO] Disable Yoast on pages with particular string in URLThanks Maybellyne – no it’s not a custom post type – it’s built with a plugin that creates a url structure to combine 2 taxonomies, so it’s an unusual situation – for example in rankmath i was able to add code to the functions file like this, but i wonder is there something similar for yoast
<?php add_action( 'wp_head', 'rankmath_disable_features',1); function rankmath_disable_features() { if (strpos($_SERVER['REQUEST_URI'], "/places/") !== false){ remove_all_actions( 'rank_math/head'); } } ?>
- This reply was modified 2 years, 11 months ago by stephenoconnor.
Forum: Plugins
In reply to: [WooCommerce] No way to stop admin emails on order status changeTry this link for customization you can do to stop emails: https://woocommerce.com/document/unhookremove-woocommerce-emails/
Thanks Dan,
Commenting out the first line worked thank you!Thanks for reply Dan, yeah it’s actually in the backend products menu – everything else seems to work fine, but the products screen is broken. screenshot here: https://ibb.co/xLdMTK3
error message here:Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/customer/www/stepheno77.sg-host.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:731 Stack trace: #0 /home/customer/www/stepheno77.sg-host.com/public_html/wp-includes/class-wp-hook.php(303): aviaElementTemplates->handler_pages_custom_column(0, 2099) #1 /home/customer/www/stepheno77.sg-host.com/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/stepheno77.sg-host.com/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /home/customer/www/stepheno77.sg-host.com/public_html/wp-admin/includes/class-wp-posts-list-table.php(1325): do_action('manage_posts_cu...', 0, 2099) #4 /home/customer/www/stepheno77.sg-host.com/public_html/wp-admin/includes/class-wp-list-table.php(1452): WP_Posts_List_Table->column_default(Object(WP_Post), 0) #5 /home/customer/www/stepheno77.sg-host.com/public_html/wp-admin/ in /home/customer/www/stepheno77.sg-host.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php on line 731 There has been a critical error on this website. Please check your site admin email inbox for instructions. Learn more about troubleshooting WordPress.
Forum: Plugins
In reply to: [Media Library Assistant] Map title to alt textI just wanted to chip in – if replacing alt tags for featured image and want to use the post title not the title of the image, you can use template:[+parent_title+] because using post_title there uses the title of the image not the post
Forum: Plugins
In reply to: [WooCommerce] WooCommerce New Order emails not sendingI think problem is with new order custom email address: if you go to woocommerce email settings and click on new order at the top, then delete everything in the Recipient(s) box. Then it will send to the default email. This worked for me.