Skip to content

Instantly share code, notes, and snippets.

View kimwhite's full-sized avatar

Kim White kimwhite

View GitHub Profile
<?php // Do NOT copy this line
/**
* This recipe will add a "Company" Column to Approved List Header
* 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/
*/
@kimwhite
kimwhite / Remove Image Size
Last active December 19, 2019 01:14
This will remove the "add_image_size" that Atomic Blocks creates
/*
* this code will remove the 600x600 and 600x400 image created by the Atomic Blocks plugin.
* Worked 12-18-2019
* from https://wordpress.org/support/topic/turn-on-off-addition-of-custom-image-sizes/
* can it be used for Images create by core?
* also https://developer.wordpress.org/reference/functions/remove_image_size/
*/
add_action( 'after_setup_theme', function () {
remove_image_size( 'ab-block-post-grid-landscape' );
<?
/**
* This recipe will change "discount code" to "promo code" on 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/
*/
function my_pmpro_text_strings( $translated_text, $text, $domain ) {
<?
/**
* This recipe will change add a Payment type column to your members Export CSV
* 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/
*/
// add the code below - you may add other columns similarly
<?
/**
* This recipe will add new fields to your Members List and Add Members 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/
*/
// add the code below - you may add other columns similarly
@kimwhite
kimwhite / requires_membership_posts_columns.php
Last active January 10, 2020 17:44 — forked from strangerstudios/requires_membership_posts_columns.php
Add a "Requires Membership" column to the All Posts dashboard page to show what levels are required to view.
<?php
/**
* Add a Requires Membership Column to All Post view
* This is an easy way to see how your content is being restricted for members.
*
* 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 will add a a Last Payment column to your members Export CSV
* 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/
*/
/* add code below this line */
<?php
/**
* This recipe adds custom 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/
*/
@kimwhite
kimwhite / add-custom-column-to-post-page-list.php
Last active November 26, 2025 21:05 — forked from strangerstudios/requires_membership_pages_columns.php
Add a "Requires Membership" column to the All Pages and All Post dashboard page to show what levels are required to view. Raw
<?php
/**
* Add a “Requires Membership” column to the Posts and Pages lists in the WordPress admin.
*
* title: Add a “Requires Membership” Column to Posts and Pages
* - shows which membership levels are required to view each post or page.
* layout: snippet
* collection: admin-pages
* category: admin
* link: TBD
@kimwhite
kimwhite / requires_membership_categories_columns.php
Last active January 15, 2020 02:56 — forked from strangerstudios/requires_membership_categories_columns.php
Add a "Requires Membership" column to the Categories dashboard page to show what levels are required to view.
<?php
/**
* Show a “Requires Membership” Column on the Categories Screen
* This is an easy way to see how your content is being restricted for members.
*
* 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/
*/