MemberPress: Display User's Course Progress in MemberPress Courses
The code snippet registers a new shortcode: [mpcs_user_courses_progress]. Adding this shortcode will display all MemberPress courses…
Set Custom Donation Receipt Page For Offline Donations
You may want to use a different donation receipt page for Offline donations than your other…
Profile Data Shortcode
Renders the value of a single Profile Form field. Accepts one value, key. But it has…
Google AdSense code
AdSense code
MemberPress: Restrict Signups to a Specific Country
This code snippet limits registration to users from the specified country only. If users from other…
Move User Fields In Donation Form
In this example we move the user fields section (the "Your Details" bit) to appear below…
Weather API
Live weather
Add User Field
This adds a field to the end of the "Your Details" section in the Profile form.
Auto register guests that purchase
function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…
MemberPress: Remove all but one country from the drop-down
Removes all the countries for the drop-down list on the account and registration pages and leaves…
Disable WooCommerce widgets on vendor store pages
/** * Remove widgets from the vendor store and single product pages conditionally. * * You…
MemberPress: WooCommerce - Show Protected Products on the Shop Page
If we protect products using Rules, they won’t show in the Shop page. To change this…
MemberPress: Change Membership Registration URL
Each MemberPress Membership has an automatically generated registration page with its default URL. This code snippet…
om-reactv3.js
// Using React Router V3 import { browserHistory } from 'react-router'; class App extends React.component {…
WPCode Functions
For the WPCode plugin interface