MemberPress: Change Membership Registration URL

function mepr_change_membership_urls( $url, $product, $args, $modify_if_https ) { $url_changed = false; switch( $product->ID ) { case ‘123’: //Change 123 to membership id where you can get it from ID column from Membership table $url = MeprUtils::get_permalink( 456 ).$args; //Change 456…Continue reading

MemberPress: Add/Override State Drop Down Values

function mepr_change_state_dropdown_values ( $states ) { $sfiles = @glob( WP_PLUGIN_DIR . ‘/mepr-i18n/states/[A-Z][A-Z].php’, GLOB_NOSORT ); foreach( $sfiles as $sfile ) { require( $sfile ); } return $states; } add_filter( ‘mepr_states’, ‘mepr_change_state_dropdown_values’ );Continue reading

Add Custom Element to Breadcrumbs

add_filter( ‘aioseo_breadcrumbs_trail’, function( $crumbs ) { if(is_singular(‘post’) || is_category()){ $blog = [ ‘label’ => ‘Resources’, ‘link’ => ‘https://whatisnosy.com/resources’, ‘type’ => ” ]; array_splice( $crumbs, 0, 0, [$blog] ); } return $crumbs; }, 10, 2);Continue reading

eaglegame

const canvas = document.getElementById(‘game-canvas’); const ctx = canvas.getContext(‘2d’); class Character { constructor(name, x, y, width, height, color, level, hp, attack, xp) { this.name = name; this.x = x; this.y = y; this.width = width; this.height = height; this.color = color;…Continue reading