Categories
PHP Snippet WordPress

Remove breadcrumbs from WooCommerce

Remove breadcrumbs from WooCommerce by adding the following code to your themes functions.php

Categories
PHP Snippet WordPress

Remove product meta from WooCommerce product page

Remove product meta (SKU, tags, etc) from WooCommerce product page by adding the following code to your themes functions.php

Categories
PHP Snippet WordPress

Copy and synchronize WordPress posts programmatically with Polylang

You can batch sync your posts with the following script. If you have a lot of posts to sync, this script should be run outside of WordPress.

Categories
PHP Snippet WordPress

Remove products tabs from WooCommerce product page

Add following code to your functions.php file.

Categories
PHP WordPress

How to add fields to WooCommerce products general tab

Categories
PHP Snippet WordPress

Change Yoast SEO open graph and Twitter default image size

Categories
PHP Snippet WordPress

Set custom Yoast SEO og:image

Categories
PHP Snippet WordPress

Populate ACF select field’s choices dynamically

Categories
PHP Snippet WordPress

Display all tag cloud tags in the same font size

Modify tag cloud widget arguments to display all tags in the same font size

Categories
PHP Snippet WordPress

Get Attachment ID from Image URL

Example usage