MemberPress: Add Address Column to Subscriptions Table

add_filter( ‘mepr-admin-subscriptions-cols’, function( $cols ) { $cols[‘col_address’] = __( ‘Address’, ‘memberpress’ ); return $cols; }); add_action( ‘mepr-admin-subscriptions-cell’, function( $column_name, $rec, $table, $attributes ) { if( $column_name === ‘col_address’ ) { $user = new MeprUser( ( int ) $rec->user_id ); $address_one…Continue reading

Add Another Meta Keyword to Each Post

add_filter( ‘aioseo_keywords’, ‘aioseo_filter_keywords’ ); function aioseo_filter_keywords( $keywords ) { if ( is_singular() ) { $keywords = explode( ‘,’, $keywords ); array_push( $keywords, ‘anotherkeyword’ ); $keywords = implode( ‘,’, $keywords ); } return $keywords ; }Continue reading

Tablepress_get_cell

function tablepress_cell_to_url_shortcode( $atts ) { $atts = shortcode_atts( array( ‘table_id’ => ”, ‘row’ => 1, ‘col’ => 1, ‘page’ => ”, // Zielseite ‘param’ => ‘wert’, // Parametername ), $atts, ‘tablepress_link’ ); $table_data = tablepress_get_table( $atts[‘table_id’], true ); if (…Continue reading