rcp_members_page_table_column

This action has been deprecated. Use rcp_memberships_list_table_column_{column} instead.

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/

Used to add content to a new column to the member's page.

Parameters:

  • $user_id - ID of the member being displayed.

Example

function ag_rcp_members_page_table_column( $user_id ) {
    ?>
    <td data-colname="<?php esc_attr_e( 'Name of your column here', 'rcp' ); ?>"><?php echo get_user_meta( $user_id, 'your_meta_key', true ); ?></td>
    <?php
}

add_action( 'rcp_members_page_table_column', 'ag_rcp_members_page_table_column' );
Powered by Zendesk