MemberPress: Display Current User’s Memberships Renewal Dates

function mp_membership_renewal_date() { if (!is_user_logged_in()) { return ‘You need to be logged in to view this information.’; } global $wpdb; $user_id = get_current_user_id(); // Query to get all active MemberPress transactions for the current user $transactions = $wpdb->get_results($wpdb->prepare( “SELECT txn.*,…Continue reading

MemberPress: Display Current User’s Memberships Statuses

function mp_membership_status() { if (!is_user_logged_in()) { return ‘You need to be logged in to view this information.’; } global $wpdb; $user_id = get_current_user_id(); // Query to get all active MemberPress transactions for the current user $transactions = $wpdb->get_results($wpdb->prepare( “SELECT txn.*,…Continue reading

Envira Featured Content – Add Additional Content to Featured Content

/* Adding Date, Author, Category, Taxonomy To Featured Content output * * @link https://enviragallery.com/docs/adding-date-author-category-taxonomy-to-featured-content/ */ function envira_fc_date_terms( $content, $posts, $data, $post ) { if ( isset($data[‘config’][‘id’]) && !empty($data[‘config’][‘id’]) ) { $gallery = get_post( intval( $data[‘config’][‘id’] ) ); } // Build…Continue reading

[targets_priority]

/** * Shortcode [targets_priority] * Displays an improved Bootstrap table with color-coded progress bars/badges. */ function crx_targets_priority_shortcode($atts) { if (!is_user_logged_in()) { return “ Please log in to see your priority ranking. “; } global $wpdb; $T = crx_get_targets(); $user_id =…Continue reading