PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CONTRIBUTING.md
README.md
add-a-continue-shopping-button-on-cart-page-in-woocommerce.code-snippets.xml
add-a-new-billing-range-to-woocommerce-subscriptions-to-allow-for-longer-subscription-lengths.code-snippets.xml
add-a-upc-and-ean-meta-fields-to-variations-in-woocommerce.code-snippets.xml
add-ajax-based-“add-to-cart”-button-on-woocommerce-single-product-page.code-snippets.xml
add-global-trade-identification-numbers-gtins-to-woocommerce-products.code-snippets.xml
add-woocommerce-product-category-custom-taxonomy-to-the-rest-api.code-snippets.xml
add-wording-after-the-regular-price-in-woocommerce.code-snippets.xml
add-wording-before-the-regular-price-in-woocommerce.code-snippets.xml
adds-a-custom-order-action-in-the-recent-orders-table-of-the-woocommerce-account.code-snippets.xml
adds-stock-status-to-the-dropdown-on-product-pages-in-woocommerce.code-snippets.xml
after-registration-logout-the-user-and-redirect-to-home-page-in-woocommerce.code-snippets.xml
always-show-shipping-fields-in-woocommerce-checkout.code-snippets.xml
asynchronously-load-javascript-in-wordpress.code-snippets.xml
auto-complete-all-woocommerce-orders.code-snippets.xml
bulk-generategrant-download-permissions-in-woocommerce.code-snippets.xml
bypass-are-you-sure-you-want-to-log-out-message-in-woocommerce.code-snippets.xml
bypass-logout-confirmation-in-woocommerce.code-snippets.xml
change-image-compression-for-jpeg-files-for-90.code-snippets.xml
change-text-on-order-received-page-in-woocommerce.code-snippets.xml
change-the-add-to-cart-text-on-product-archives-in-woocommerce.code-snippets.xml
change-the-add-to-cart-text-on-single-products-in-woocommerce.code-snippets.xml
change-the-default-state-and-country-on-the-checkout-in-woocommerce.code-snippets.xml
change-the-number-of-displayed-upsells-on-product-pages-in-woocommerce.code-snippets.xml
change-the-woocommerce-bookings-display-price-to-an-amount-per-person.code-snippets.xml
change-title-of-woocommerce-thank-you-page.code-snippets.xml
clear-notices-on-cart-update-in-woocommerce.code-snippets.json
clear-wp-fastest-cache-when-beaver-builder-page-builder-is-published.code-snippets.xml
customizer-remove-all.code-snippets.xml
defer-javascript-load-in-wordpress.code-snippets.xml
delete-product-wording-under-products-x-button-in-cart-when-using-woocommerce.code-snippets.xml
dequeue-jquery-migrate.code-snippets.xml
disable-admin-bar-for-all-users-except-for-administrators.code-snippets.xml
disable-and-remove-do_pings.code-snippets.xml
disable-author-archives.code-snippets.xml
disable-background-image-regeneration-in-woocommerce.code-snippets.json
disable-billing-first-name-autofocus-at-checkout-in-woocommerce.code-snippets.xml
disable-cache-in-gravityview.code-snippets.json
disable-comment-reply.code-snippets.xml Add files via upload Jun 23, 2017
disable-comment-reply.min_.js-from-footer-in-wp.code-snippets.xml
disable-comments.code-snippets.xml
disable-devicepx-jetpack.js-from-jetpack.code-snippets.xml
disable-edd-dashboard-sales-widget-in-wordpress.code-snippets.xml
disable-elementor-overview-dashboard-widget-in-wordpress.code-snippets.xml
disable-embeds.code-snippets.xml
disable-emojis.code-snippets.xml
disable-file-editor.code-snippets.xml
disable-hyperlinks-in-wordpress-comments.code-snippets.xml
disable-image-compression-for-jpeg-files.code-snippets.xml
disable-media-attachment-page-by-redirecting-to-the-parent-post-in-wordpress.code-snippets.xml
disable-oceanwp-news-dashboard-widget-in-wordpress.code-snippets.json
disable-payments-on-checkout-page-in-woocommerce.code-snippets.xml
disable-product-sku-on-the-front-end-in-woocommerce.code-snippets.json
disable-self-pingback.code-snippets.xml
disable-self-pings-on-multisite.code-snippets.xml
disable-status-dashboard-widget-in-woocommerce.code-snippets.xml
disable-upsell-ads-in-jetpack.code-snippets.xml
disable-wc-ajaxget_refreshed_fragments-on-homepage.code-snippets.xml
disable-woocommerce-delete-for-orders.code-snippets.xml
disable-wp_attempt_focus.code-snippets.xml
disable-wptexturize-in-wordpress.code-snippets.xml
disable-xml-rpc.code-snippets.xml
display-discountoffer-percentage-in-woocommerce.code-snippets.xml
display-hi-name-logout-or-login-register-by-using-shortcode-login-status-in-woocommerce.code-snippets.xml
display-order-details-for-woocommerce.code-snippets.xml
dns-prefetching.code-snippets.xml
dynamically-change-woocommerce-order-date-on-status-change.code-snippets.xml
empty-woocommerce-cart-before-adding-new-item.code-snippets.xml
enable-out-of-stock-products-with-facetwp.code-snippets.xml
enable-shortcodes-in-text-widgets.code-snippets.xml
enable-variable-products-with-facetwp.code-snippets.xml
facetwp-caching-one-day-expiration.code-snippets.xml Add files via upload Jun 26, 2017
filter-by-featured-products-in-wp-admin-when-using-woocommerce.code-snippets.xml Filter by featured products in wp-admin when using WooCommerce Add Sep 28, 2017
first-name-and-full-name-user-search-in-wp-admin.code-snippets.xml
free-shipping-store-notice-in-woocommerce.code-snippets.xml
hide-additional-information-tab-in-woocommerce.code-snippets.xml
hide-admin-notices-in-wordpress.code-snippets.xml
hide-count-of-processing-orders-from-woocommerce-orders-menu.code-snippets.xml
hide-coupon-form-on-checkout-if-coupon-is-already-applied-from-cart-in-woocommerce.code-snippets.xml
hide-extensions-menu-from-users-in-woocommerce.code-snippets.xml
hide-or-remove-the-quantity-field-for-variable-and-grouped-product-types-in-woocommerce.code-snippets.json
hide-out-of-stock-products-in-related-products-for-woocommerce.code-snippets.xml
hide-prices-on-the-shop-category-page-in-woocommerce.code-snippets.xml
hide-shipping-rates-when-free-shipping-is-available-in-woocommerce.code-snippets.xml
hide-shipping-title-from-emails-in-woocommerce.code-snippets.xml
hide-shipping-title-in-woocommerce.code-snippets.xml
hide-tags-featured-and-type-admin-columns-from-the-product-list-in-woocommerce.code-snippets.xml
hide-the-free-price-notice-in-woocommerce.code-snippets.xml
hide-the-in-stock-message-on-product-page-in-woocommerce.code-snippets.xml
hide-the-whole-additional-information-tab-in-woocommerce.code-snippets.xml
hide-the-woocommerce-help-tab-in-the-admin.code-snippets.xml
hide-woocommerce-extensions-menu.code-snippets.xml
hide-wordpress-version-number.code-snippets.xml
hide-yoast-seo-sidebar-ads.code-snippets.xml Hide Yoast SEO sidebar ads Add Aug 28, 2017
how-to-limit-shipping-to-specific-states-only-in-woocommerce.code-snippets.xml
if-only-one-post-is-found-by-the-search-results-redirect-user-to-that-post.code-snippets.xml Add files via upload Jul 31, 2017
jetpack-remove-the-share-counts-from-the-sharing-buttons.code-snippets.xml
jilt-for-woocommerce-disable-moving-the-email-field-at-checkout.code-snippets.xml
jilt-for-woocommerce-recovery-link-redirect-to-cart.code-snippets.xml
limit-comment-length-in-wordpress.code-snippets.xml
limit-post-revisions-to-5-in-wordpress.code-snippets.xml
link-to-order-in-new-order-emails-in-woocommerce.code-snippets.xml
links-previous-orders-to-a-new-customer-upon-registration-in-woocommerce.code-snippets.xml
logout-of-wordpress-without-confirmation-message.code-snippets.xml
make-orders-with-processing-order-status-be-able-to-be-edited-in-woocommerce.code-snippets.xml
modify-variable-product-prices-in-woocommerce.code-snippets.xml
move-all-unapproved-comments-to-approved-with-locomotive.code-snippets.xml Add files via upload Jun 29, 2017
move-product-description-after-product-price-in-woocommerce.code-snippets.json Move product description after product price in WooCommerce Add Mar 16, 2018
move-sku-field-after-all-product-data-in-woocommerce.code-snippets.xml
move-yoast-seo-box-to-bottom-of-edit-page.code-snippets.xml
multisite-main-site-redirect.code-snippets.xml
number-polyfill-in-woocommerce-quantity-increment.code-snippets.xml
only-load-woocommerce-scripts-on-shop-cart-and-checkout.code-snippets.xml
optimize-heartbeat-settings.code-snippets.xml
purge-all-expired-transients-by-wp-cron.code-snippets.xml
redirect-after-registration-in-woocommerce.code-snippets.xml
redirect-the-customer-to-the-referring-url-on-login-to-woocommerce.code-snippets.xml
redirect-to-checkout-on-add-to-cart-in-woocommerce.code-snippets.xml
redirect-to-home-page-for-woocommerce-login-and-logout.code-snippets.xml
remote-jetpack-promotions.code-snippets.xml
remove-add-to-cart-button-from-shop-and-product-page-in-woocommerce.code-snippets.xml
remove-add-to-cart-buttons-on-shop-archive-page-in-woocommerce.code-snippets.xml
remove-add-to-cart-notice-in-woocommerce.code-snippets.xml
remove-all-dashboard-widgets-in-wordpress-admin.code-snippets.xml
remove-count.js-in-disqus-from-loading-on-homepage.code-snippets.xml
remove-crazy-counts-slowing-down-my-dashboard-in-woocommerce.code-snippets.xml
remove-css-andor-js-for-select2-used-by-woocommerce.code-snippets.xml
remove-custom-fields-metabox.code-snippets.xml
remove-dashicons-from-the-front-end-for-non-admins.code-snippets.xml
remove-existing-tabs-from-single-product-pages-in-woocommerce.code-snippets.xml
remove-free-from-the-shipping-method-labels-in-woocommerce.code-snippets.xml
remove-gravatar.code-snippets.xml
remove-jetpack-css.code-snippets.xml
remove-jetpack-sharing-buttons-from-post-excerpt.code-snippets.xml
remove-order-status-from-my-account-orders-in-woocommerce.code-snippets.xml
remove-order-total-from-my-account-orders-in-woocommerce.code-snippets.xml Remove order total from My Account > Orders in WooCommerce Add Dec 27, 2017
remove-persistent-cart-in-woocommerce.code-snippets (1).xml
remove-persistent-cart-in-woocommerce.code-snippets.xml
remove-processing-order-status-in-woocommerce.code-snippets.xml
remove-product-review-tab-in-woocommerce.code-snippets.xml
remove-quantity-column-from-cart-page-in-woocommerce.code-snippets.json
remove-quantity-fields-on-all-product-types-in-woocommerce.code-snippets.json
remove-query-strings-from-static-resources.code-snippets.xml
remove-related-products-in-woocommerce.code-snippets.xml
remove-sku-from-product-pages-in-woocommerce.code-snippets.xml
remove-skus-completely-from-woocommerce.code-snippets.xml
remove-the-activity-dashboard-widget-in-wordpress.code-snippets.xml
remove-the-additional-css-section-introduced-in-4.7-from-the-customizer.code-snippets.xml
remove-the-price-string-from-variable-subscription-products-in-woocommerce.code-snippets.xml
remove-the-search-box-from-the-header-of-storefront-theme.code-snippets.xml
remove-the-try-gutenberg-panel-from-the-dashboard-in-wordpress-admin.code-snippets.xml
remove-the-welcome-panel-from-the-dashboard-in-wordpress-admin.code-snippets.xml
remove-the-“successfully-added-to-cart-message”-in-woocommerce.code-snippets.xml
remove-visual-composer-specific-shortcodes-from-showing-in-relevanssi-search.code-snippets.xml Add files via upload Jul 31, 2017
remove-windows-live-writer-link.code-snippets.xml
remove-woocommerce-reviews-dashboard-widget.code-snippets.xml
remove-woocommerce-updater-notice.code-snippets.json
remove-wordpress-version-number-from-head.code-snippets.xml
remove-yoast-seo-admin-bar.code-snippets.xml
remove-yoast-seo-canonical-url-for-facebook.code-snippets.xml
removes-woocommerce-cart-notices-at-checkout-leaving-them-only-on-the-cart-page-in-woocommerce.code-snippets.xml
removing-header-junk.code-snippets.xml
rename-the-coupon-field-on-the-cart-page-in-woocommerce.code-snippets.xml
rename-the-have-a-coupon-message-on-the-checkout-page-in-woocommerce.code-snippets.xml
replacing-the-button-add-to-cart-by-a-link-to-the-product-in-shop-and-archives-pages-in-woocommerce.code-snippets.xml
restricting-shipping-only-to-continental-u.s.-by-removing-certain-states-from-default-u.s.-list-in-woocommerce.code-snippets.xml
round-up-all-shipping-rates-in-woocommerce.code-snippets.xml Round up all shipping rates in WooCommerce add Sep 5, 2017
search-customers-with-numeric-usernames-in-woocommerce.code-snippets.xml
send-an-email-notification-when-order-status-change-from-pending-to-cancelled-in-woocommerce.code-snippets.xml
set-cart-expiration-interval-to-72-hours-in-woocommerce.code-snippets.xml Set cart expiration interval to 72 hours in WooCommerce Add Oct 3, 2017
set-quality-and-strip-parameters-for-every-image-on-the-site-when-using-image-cdn-formerly-photon.code-snippets.php
set-woocommerce-default-country-as-united-states-and-the-state-as-michigan-with-the-currency-as-usd-by-default.code-snippets.xml
set-woocommerce-tracking-option-as-no-by-default.code-snippets.xml
show-a-notice-throughout-the-store-if-the-cart-is-empty-in-woocommerce.code-snippets.xml
show-add-to-cart-button-only-for-logged-users-in-woocommerce.code-snippets.xml
show-four-related-products-on-a-single-product-page-in-woocommerce.code-snippets.xml
show-products-in-woocommerce-if-nothing-can-be-found-in-search.code-snippets.xml
show-products-short-description-on-shop-page-in-woocommerce.code-snippets.xml
simplify-woocommerce-checkout-fields-for-free-checkouts.code-snippets.xml
stop-wordpress-sending-anything-but-essential-data-during-the-update-check.code-snippets.xml Stop WordPress sending anything but essential data during the update … Oct 26, 2017
store-customers-ip-in-order-meta-in-woocommerce.code-snippets.xml
tiered-shipping-rates-in-woocommerce.code-snippets.xml
woocommerce-add-an-empty-cart-button.code-snippets.xml
woocommerce-admin-custom-css-to-hide-active-step-in-setup-wizard.code-snippets.xml
woocommerce-auto-update-cart-when-quantity-changed.code-snippets.xml
woocommerce-confirm-password.code-snippets.xml
woocommerce-disable-jsonld-format.code-snippets.xml
woocommerce-hide-the-sort-by-option.code-snippets.xml
woocommerce-holidaypause-mode.code-snippets.xml
woocommerce-if-cart-is-empty-the-cart-page-will-redirect-to-shop-page.code-snippets.xml
woocommerce-logout-redirect-if-on-cart-or-checkout-to-my-account.code-snippets.xml
woocommerce-redirect-loop-fix-when-cart-and-checkout-are-on-the-same-page.code-snippets.xml
woocommerce-remove-additional-information-tab.code-snippets.xml
woocommerce-remove-password-strength.code-snippets.xml
woocommerce-remove-variation-from-xx-price.code-snippets.json
woocommerce-restore-the-purchased-items-column-in-orders-page.code-snippets.xml
woocommerce-set-tax-exemption-based-on-user-role.code-snippets.xml
wrap-woocommerce-content-with-a-facetwp-template-so-we-can-filter-product-results.code-snippets.xml

README.md

Code Snippets WP Speed Up

Code Snippets for WordPress and WooCommercce speed up which can be imported into the plugin.

For other useful code snippets for WordPress. https://github.com/senlin/Code-Snippets

Where to Install the Code Snippets plugin from

https://wordpress.org/plugins/code-snippets/

How to Import Code Snippets

You will need to install and active Code Snippets plugin on the site you want to import and use those code snippets on. Look for the Snippets admin menu, when viewing from wp-admin. So from Snippets > Import, select the XML file you want to import, then click on the Upload file and import button. Then from Snippets > All Snippets, you can see all, active and decativated snippets.