I wanted to disable right click on my wordpress site. I have written a small snippet and inserted into body which disables right click, CTRL events and keyups. but it is annoying when I want to copy something on site. is there a way I can modify the current snippet like only logged in users would be able to a…
Tag: wordpress
Show product titles to specific delimiter on WooCommerce category archive pages
My products have titles that include the delimiter | after which I enter some SEO keywords. Example product title Samsung UE55AU7172 | Smart 4K UHD 55 Can I force WooCommerce to show the product titles up to that delimiter in product category pages only? For example, the above product title in the product cat…
Contact Form 7 – Get final mail HTML output
Is there a hook that will allow me to see exactly what is being sent out to an email? I’ve tried using ‘wpcf7_mail_sent’ and all it contains is array of the data and fields. For example it has “first-name”: “John”, “last-name”: “Smith”, ……
User ID remove @ and transform “.” into “-“
I have this function in order to set a link for my user to go to their custom profile page : The issue is that if the user ID is his email like john@example.com the link https://mywebsite/author/john@example.com will have an 403 error. But if the is the link is https://mywebsite/author/johnexample-com it work…
is_page() function not displaying content to specific page ID’s
Im trying to simply just output some HTML onto these 3 specific page-ids that I am referring too in the code below. Does anyone have any ideas as to why this php isn’t working? (its at the bottom of my functions.php file in the child theme. Any help would be appreciated as to why this ‘test conten…
Show order downloads in admin new order email notification in WooCommerce
How can I include this “Downloads” section (attached) in the admin email? By default, WooCommerce only sends it to the customer, not the store owner. I tried looking at articles that showed how to customize WooCommerce emails and I think that woocommerce_email_order_details is the hook that I̵…
Add sale badge to product thumbnail on single product page and shop archive pages in WooCommerce
I use the following code to add a small badge topleft of every product with -%off. On my product page and it works. However when i try to do it on category page to all product listings with the following code: It does not work, there doesn’t seem to be any adjustment. Can I get some guidance into it? An…
Add a specific word next to quantity input field for specific products on WooCommerce cart page
I have two products – ‘counseling’ and ‘testing’, and I want to display a specific word (‘sessions’ and ‘testings’) next to (or under) the quantity input field for each of them on the shopping cart page, but I can’t find a hook for this. How this can…
How to disable Cash On Delivery for dokan vendors subscription
I am using WooCommerce Dokan (Version 3.2.6 ) multi-vendor plugin. In my website Cash on delivery and pay by card both methods are enable for users. But when any vendor purchasing a package, it is showing Cash On Delivey for that as well, due to which I have to keep track of every vendor manually whether he h…
Your PHP installation appears to be missing MYSQL extension which is required by wordpress for redhat
I have been struggling with this error for quite sometimes and I am wondering if someone could help me get this running I have it keeps giving me the same error, I have removed and reinstalled php or mysql but didnt solve the issue. I also found other posts and i let the php.ini to have extension=mysqli still…