i think you can use ‘wp_enqueue_scripts’ hook and try with condition like this-
add_action( 'wp_enqueue_scripts', 'my_deregister_javascript' );
function my_deregister_javascript(){
if( get_the_ID() != '67688' ) {
wp_deregister_script( 'wc-lottery-jquery-plugin' );
}
}
for front-end
Related Posts:
- List of JS events in the WooCommerce frontend
- Hide Add to Cart Button
- How to stop a Gutenberg Block from firing multiple GET Requests?
- “Cannot read property ‘replace’ of undefined” Javascript error when trying to add attribute terms from add product page [closed]
- Javascript / Ajax Error After Migrating To New Domain Name
- How can i stop woocommerce checkout event based on api request result?
- adding a script with type=”module” to woocommerce admin area
- Force uppercase on some WooCommerce checkout fields input
- Javascript error when adding an item to the cart [closed]
- Add to cart – button should be disabled
- Using the WordPress and WooCommerce REST APIs in the same Node app
- Woocommerce variable product’s total amount by javascript
- Ajax add to cart not updating Elementor mini cart totals
- Trying to run Javascript on AJAX call
- List of JS events in the WooCommerce frontend
- Woocommerce Checkout Page Total Price Inside Google Pay Script
- Running JavaScript after using WooCommerce Filter Plugin
- woocommerce deposit Form with AJAX and shortcode won’t update but add to previous output
- How to make wocommerce shop products same heigt
- Format number to 2 decimal places
- currentURL is not defined
- Retrieve Woocommerce Cart Url with javascript/jquery [closed]
- How to insert link, with lightbox, that opens specific page content only
- Woocommerce custom product with JS script, can’t understand how it works [closed]
- Removing ‘woocommerce-no-js’ class from body
- How do I fix this “Uncaught ReferenceError: woodmartThemeModule is not defined”?
- How to pass/get data to/from the WooCommerce data-product_variations object?
- Optimizing Woocommerce order items query
- WooCommerce Template overriding not working with woocommerce.php
- How do you add a custom function to add / update product?
- Is there a Woocommerce hook that fires when applying a coupon but before checking if it’s valid?
- How to search Woo Commerce products with punctuation in title?
- How to unhook a function in Woocommerce Template?
- Show only sidebar if widgets have content on the current page
- Disable Woocommerce product tags display by alphabetical order
- Hide Price on one specific Woocommerce Single Product page [closed]
- Change WooCommerce PayPal Built-in Default Order Status
- Woocommerce and Pricing deals plugin total price update with AJAX
- Send a value to woocommerce with a button type submit
- Breadcrumbs on Product Page Always Show Wrong Product [closed]
- Modify SKU for display on product page
- Permalinks contain unwanted space resulting in broken links
- WP_Query with meta_query for children
- WooCommerce product archive url without value / all values
- Woo commerce+ Stripe – How to associate one account per currency [closed]
- WooCommerce orderby template disappears and not longer works on search page
- Woocommerce variations as a list [closed]
- Sort & Display WooCommerce Product Attributes by Order
- Adding product info for printing to custom Woocommerce Product Display tab [closed]
- wp_set_object_terms being undone
- How to search variable product by its variation id in woocommerce admin product search box?
- Add shipping address to Woocommerce order emails [closed]
- A function to add arguments to a taxonomy
- Hide inventory message on product page based on available stock quantity
- Different Templates for Woocommerce Parent and Child Sub Categories
- add sub subpage endpoint to woocommerce plugin my-account section
- Woocommerce changing add to cart button text as icon [closed]
- how to change the “return to shop” button text? [closed]
- Create a regular post for every WooCommerce order
- How do I create a filter to hide the One Click Accessibility plugin button in WordPress?
- customers are not showing up in woocommerce
- Hooks For Design variation in woo commerce single product page
- Dokan stock management
- Access custom meta_data in processing order email
- Woocommerce : How to automatically input the same email for every order?
- Woocommerce – Change order of products in Confirmed Order
- echo product parent category
- How to edit wc_get_template_part for archive products
- Switch to user link shortcode
- Getting in an exception for get product detail by id in woocommerce REST api
- Woocommerce Variation product added twice to cart
- Woocommerce Ajax add to cart redirect to homepage
- How to merge 2 accounts with same email address after merge of 2 woocommerce databases
- Temporary access to page with URL sent to email
- How to save a Woocomerce metabox input as a metadata field
- How do you programatically add a booking item to the cart?
- populating extra field with woocommerce categories
- Woocommerce Shop Manager Capabilities
- customize src attribute in woocommerce single product image
- How to tell woocommerce slider to use thumbnails
- Add customer name to woocommerce email-header.php heading
- woocommerce sort by dropdown styling
- Mysql query – amount spent by customer
- Integration widget Mondial Relay Js
- Custom Registration Fields woocommerce
- Display text of price (minus 20%) on every product page in a sentence.
- How Do I Access Parameters Emitted by an Action?
- bulk media crop for featured images
- Users credentials and syncing from third party with WooCommerce
- WooCommerce shop, my account, cart every page redirect to home page [closed]
- Include customer details in woocommerce 3rd part plugin email
- how to add a page to a plugin?
- Unable to get product category
- Woocommerce how to show most selling products by category
- AffiliateWP not calculating multiple quantities when using affwp_calc_referral_amount filter
- Hide a shipping method if cart total is higher than an amount
- error 500 in Back Office when using a woocommerce function in functions.php
- WordPress pointing animated GIF images with wrong file name upon upload (GIFs animation not working)
- How to update all products with same SKU prefixes when updating stock with CSV?
- What is the best and cheapest way to generate dashboards about conversions data and store users? [closed]