expose acf
function expose_acf_to_rest() { register_rest_field('game_state', 'acf', [ 'get_callback' => function($post_arr) { return get_fields($post_arr['id']); }, 'update_callback' => null,…
Display Width in Pixel - Elementor
This displays Width of the Current Editor View in Pixels, when Editing in Elementor. Copied from..…
Paid Memberships Pro with WC Vendors
// PAID MEMBERSHIPS PRO -- UPGRADE TO VENDOR, DOWNGRADE TO SUBSCRIBER /* Members signing up for…
Add custom page to the vendor dashboard
// Hook into the navigation add_filter( 'wcv_pro_dashboard_urls', 'add_test_page_nav', 9 ); function add_test_page_nav( $pages ){ $pages[ 'test_page'…
WP Simple Pay: Set a Per-Form Custom Amount Programmatically
Adjust a single payment form's custom amount value programatically.
MemberPress: Extend the Grace Period
This will extend the default 1-day grace period for subscriptions. The code needs to be adjusted…
Hem
Octodesigns.se Octodesigns.se Hem Produkter Galleri Kontakta mig © 2024 Octodesigns.se All rights reserved. Hem Produkter Galleri…
Local Leaderboard
Leaderboard Nation Round 1 Income Current Round Income Percentage Difference
MemberPress: WooCommerce - Show Specific WooCommerce Product Based on MemberPress Subscription
This code snippet will show the specific WooCommerce product only to users who have an active…
Shortcode to show Thumbnail
Show the featured image anywhere in the post by using [thumbnail].
Limit Cart to One Item
Prevents customers from ever purchasing more than a single item at once
MemberPress: Return to Same Page After Signup
Return the user to the same page after they register.
WP Simple Pay: Reduce Currency Minimum Amount
The minimum amount is $0.50 US or equivalent in charge currency. WP Simple Pay uses $1.00…