MemberPress: Export Account Type in CSV

add_action( ‘admin_init’, function() { if ( isset( $_GET[‘export_members_extended’] ) ) { $all = MeprUser::list_table( /* $order_by */ ‘user_login’, /* $order */ ‘ASC’, /* $paged */ ”, /* $search */ ”, /* $search_field */ ‘any’, /* $perpage */ ”, /* $params…Continue reading

MemberPress: Replace Font-Family for PDF Invoice

function mepr_custom_pdf_invoice_fonts( $fonts ) { return array( ‘roboto’ => array( ‘R’ => ‘Roboto-Regular.ttf’, ‘B’ => ‘Roboto-Bold.ttf’, ‘I’ => ‘Roboto-Italic.ttf’, ‘BI’ => ‘Roboto-Bold.ttf’, //’useOTL’ => 0xFF, ‘useKashida’ => 75, ), ); } add_filter( ‘mepr-pdf-invoice-fonts’, ‘mepr_custom_pdf_invoice_fonts’ ); function mepr_custom_options_dynamic_attrs( $attrs ) {…Continue reading