My Favourite VS Code Extensions
My favourite VS Code Extensions that make my day to day tasks easier.
Duplicate action
Duplicate files or folders.
https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate
<?php | |
/** | |
* This recipe adds a custom to the [pmpro_member] shortcode. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
<?php | |
/** | |
* This recipe creates a custom signup shortcode where the email fields are | |
* before the password fields. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
<?php | |
/** | |
* This recipe sets the initial payment to the billing amount | |
* if the initial payment is 0 and the user previously belonged to | |
* a paid level. | |
* | |
* Using this recipe you may set the initial payment to 0 for recurring | |
* levels to give new (paying) members a type of "free trial" period once only. | |
* | |
* You can add this recipe to your site by creating a custom plugin |
<?php | |
/** | |
* Helper function that returns an array of a user's previous paid | |
* membership levels. | |
* | |
* Set your free level ids in the $free_levels_ids array. If there are | |
* no free levels set this to | |
* $free_levels_ids = array( 0 ); | |
* | |
* You can add this recipe to your site by creating a custom plugin |
<?php | |
/** | |
* This recipe is an example on setting a custom message for not logged in | |
* users when visiting a page containing restricted content. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
<?php | |
/** | |
* This recipe redirects users to their PMPro account page on login | |
* from the home page (site root). | |
* | |
* To set a referrer for the redirect_to variable for logged-out users | |
* refer to this article. | |
* https://www.paidmembershipspro.com/redirect-members-to-referrer-on-login/ | |
* | |
* You can add this recipe to your site by creating a custom plugin |
<?php | |
/** | |
* This recipe will change the Discount Code text strings if a specific | |
* level is specified as a querystring parameter in the URL. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
My favourite VS Code Extensions that make my day to day tasks easier.
Duplicate files or folders.
https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate
<?php | |
/** | |
* This recipe moves the checkout fields to appear in the order of | |
* 1. Username | |
* 2. First Name and Last Name | |
* 3. Email | |
* 4. Password. | |
* | |
* Email fields will be moved (always) to before password fields. | |
* First and Last Name fields will be moved if Add Name to Checkout, or |
<?php | |
/** | |
* This recipe changes the order of Add Ons on the checkout page. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |