rcp_edit_membership_after

Used to add additional content to the "Membership Details" page.

Parameters:

  • $membership (RCP_Membership) - Membership object.

Example:

Displays a text field showing the value of the "company" membership meta key.

function ag_rcp_edit_membership_after( $membership ) {
        $meta_value = rcp_get_membership_meta( $membership->get_id(), 'company', true ); // Your value here.
	?>
	<tr>
		<th scope="row" class="row-title">
			<label for="rcp-company"><?php _e( 'Company:', 'rcp' ); ?></label>
		</th>
		<td>
			<input type="text" name="rcp_company" id="rcp-company" value="<?php echo esc_attr( $meta_value ); ?>"/>
		</td>
	</tr>
	<?php
}
add_action( 'rcp_edit_membership_after', 'ag_rcp_edit_membership_after' );