How to get custom minimum price in Woocommerce
How to get custom minimum price in Woocommerce
How to get custom minimum price in Woocommerce
Woocommerce checkout page broken when set as a checkout in woocommerce settings [closed]
get_the_post_thumbnail() returns the entire img tag, not just the image URL. global $post; return get_the_post_thumbnail( $post->ID ); You can also use function wp_get_attachment_url() or wp_get_attachment_thumb_url() to get image URL and insert it into the img tag. global $post; $thumbnail_id = get_post_thumbnail_id( $post->ID ); if ( false === $thumbnail_id ) return ”; $img_url = wp_get_attachment_url( $thumbnail_id … Read more
Load extra post content from plugin, after load basic post content
Need help creating asynchronous data scraper in WordPress
My guess is that the user must be logged in? If that is the case you can simply store the page hits as metadata doing something like this: add_shortcode(‘pagehits’, ‘showPageHits’); function showPageHits($attributes) { /** @var \WP_Query $wp_query */ global $wp_query; $page = $wp_query->get_queried_object_id(); if (is_user_logged_in()) { $user = wp_get_current_user()->ID; $meta = get_user_meta($user, ‘pagehits’, true) ?: … Read more
Should I use the action in the plugin’s main file?
How to create repeater field manually, without plugin (ACF Pro)?
It’s always good to clear your own stuff on uninstallation. I see you’re using set_transient. There also is a delete_transient function (docs). I think that’s the only thing you need to clean things up.
WordPress product image sets smaller than before