function mepr_currency_codes( $codes ) { array_push( $codes, ‘EGP’ ); // Adds ‘EGP’ to the list of currency codes. To add a different currency, replace EGP with the three-letter currency code of the needed currency. return $codes; // Return the modified…Continue reading
add_filter( ‘mepr_paywall_cookie_time’, function( $expire_time ) { // Set cookie expiration time to X days (replace X with the number of days) $expire_time = ( time() + 60 * 60 * 24 * X ); // X represents the number of…Continue reading
12873467-3b1b-467f-9a92-96a696e8a1c5Continue reading
add_filter( ‘render_block_tasty-roundups/child’, function ( $block ) { $initial_block = $block; $block = preg_replace( ‘~Continue reading
add_filter( ‘aioseo_disable_title_rewrites’, ‘aioseo_disable_term_title_rewrites’ ); function aioseo_disable_term_title_rewrites( $disabled ) { if ( is_category() || is_tag() || is_tax() ) { return true; } return false; }Continue reading
add_filter(‘mepr_member_signup_reminder_disable’, function($disable_email, $reminder, $usr, $prd) { // Array of email addresses for which the signup reminder email should be disabled $emails = array(‘[email protected]’, ‘[email protected]’); // Check if the user’s email is in the list if (in_array($usr->user_email, $emails)) { $disable_email =…Continue reading
add_filter(‘mepr_wp_mail_recipients’, function($recipients, $subject, $message, $headers) { if (strpos($subject, ‘Subscription renewal’) !== false) { foreach ($recipients as $key => $recipient) { // Extract the email address from the recipient field $regExp = “/]+)>/”; preg_match($regExp, $recipient, $matches); $recipient = $matches[1]; $wp_user =…Continue reading