This is a tutorial article on how to customize the profile links for the logged in state of the [wpmem_profile] shortcode. We will focus on different ways to approach it, all of which use the wpmem_member_links_args
filter hook.
Add or remove fields based on page
Sometimes, you may find that you want to add or remove fields from the registration form based on the page you are on. This may be the case if you set up different registration pages, or you might want to have a specific registration page with certain fields and the automatic forms that show on blocked content have different fields. There are many ways to approach it, but ultimately, it is very simple to add or remove fields from the form with the wpmem_fields
filter.
How to Connect to SSH
SSH is a protocol for secure remote login and other secure network services over an insecure network. Most hosts provide SSH access with your hosting plan. SSH access allows you to log into a command prompt, perform common administrative tasks, and execute commands just as if you were sitting at the server itself. You can run additional tools such as Git, Composer, WP-CLI, etc.
Usually, your host will have information on how to connect to your site through SSH access. A general overview is provided below, but specifics may vary from host to host.
Continue Reading →Require Approval When Selling Memberships with WooCommerce
When desiring to approve users prior to completing a membership purchase, there are two general approaches:
- Approval at Registration – in this approach, you restrict purchase of memberships to registered users only, and user registrations must be approved.
- Approval of the Order – using this approach, the membership purchase process is generally the same as it normally would be – the user completes registration when they purchase a membership. However, the order is marked as completed manually by an admin (or shop manager) so the user does not get membership access until the order is completed.
Method 1 requires WP-Members Advanced Options, and WP-Members Memberships for WooCommerce. Method 2 requires WP-Members Memberships for WooCommerce, while WP-Members Advanced Options is optional.
Continue Reading →WP-Members 3.4.1.1
If you are using the PayPal extension, there was a function name conflict in WP-Members 3.4.1 that will cause a PHP fatal error. This will ordinarily manifest itself as a message indicating “There has been a critical error on this website.”
This issue was discovered within a few hours after the initial release of version 3.4.1 and a fix was released shortly after this as version 3.4.1.1.
Continue Reading →