Aron Prins started the topic PHP Functions for WordPress Post Voting in the forum Snippets 4 weeks ago
While working on our WP Knowledgebase Plugin I wanted to add a feature that allowed a single post in a specific custom post type to display up or down vote buttons below the_content.
Here’s the two functions we’re currently using on our WP Knowledgebase Plugin:
* Adds a vote form after the_content
Aron Prins started the topic WooCommerce – Add a tab to the product page in the forum Snippets 1 month ago
Thought I’d share this snippet – while I’m building TWP I wanted to share our Plugin’s changelog and current version, so I need to add a tab to the WooCommerce page with that info.
Here’s the snippet I used:
// Add custom product tab[Read more]
add_filter( 'woocommerce_product_tabs', 'custom_product_tab' );
Aron Prins changed their profile picture 1 month ago
Aron Prins started the topic How to use snippets in the forum Snippets 1 month ago
I wanted to quickly explain how you can use snippets in your WordPress sites.
Ideally, you’d create a custom plugin file – boilerplate coming soon – where you add snippets found at TotallyWP in one file rather than many others, or modify your theme’s functions.php file. If you choose the latter, and your theme gets an update……[Read more]
Aron Prins started the topic WooCommerce – Hide content if user did not purchase product in the forum Snippets 1 month ago
Back in the day when running my sites, I always remembered struggling to hide content for members who did not purchase a certain product.
Wether it’s a video, text, a link, or anything else, this shortcode function and example can help you hide content for WordPress users that are logged in but did not purchase the product you s…[Read more]
Aron Prins's profile was updated 1 month, 1 week ago