| Server IP : 172.67.147.195 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/public_html/wp-content/plugins/paid-memberships-pro/includes/updates/ |
Upload File : |
<?php
function pmpro_upgrade_1()
{
/*
default options
*/
$nonmembertext = sprintf( __( 'This content is for !!levels!! members only.<br /><a href="%s">Join Now</a>', 'paid-memberships-pro' ), "!!levels_page_url!!" );
update_option("pmpro_nonmembertext", $nonmembertext);
$notloggedintext = sprintf( __( 'This content is for !!levels!! members only.<br /><a href="%s">Login</a> <a href="%s">Join Now</a>', 'paid-memberships-pro' ), '!!login_url!!', "!!levels_page_url!!" );
update_option("pmpro_notloggedintext", $notloggedintext);
$rsstext = __( 'This content is for members only. Visit the site and log in/register to read.', 'paid-memberships-pro' );
update_option("pmpro_rsstext", $rsstext);
$gateway_environment = "sandbox";
update_option("pmpro_gateway_environment", $gateway_environment);
$pmpro_currency = "USD";
update_option("pmpro_currency", $pmpro_currency);
$pmpro_accepted_credit_cards = "Visa,Mastercard,American Express,Discover";
update_option("pmpro_accepted_credit_cards", $pmpro_accepted_credit_cards);
$parsed = parse_url( home_url() );
$hostname = $parsed['host'];
$host_parts = explode( ".", $hostname );
if ( count( $host_parts ) > 1 ) {
$email_domain = $host_parts[count($host_parts) - 2] . "." . $host_parts[count($host_parts) - 1];
} else {
$email_domain = $parsed['host'];
}
$from_email = "wordpress@" . $email_domain;
update_option("pmpro_from_email", $from_email);
$from_name = "WordPress";
update_option("pmpro_from_name", $from_name);
//setting new email settings defaults
update_option("pmpro_email_admin_checkout", "1");
update_option("pmpro_email_admin_changes", "1");
update_option("pmpro_email_admin_cancels", "1");
update_option("pmpro_email_admin_billing", "1");
update_option("pmpro_tospage", "");
//don't want these pointers to show on new installs
update_option( 'pmpro_dismissed_wp_pointers', array( 'pmpro_v2_menu_moved' ) );
//let's pause the nag for the first week of use
$pmpro_nag_paused = current_time('timestamp')+(3600*24*7);
update_option('pmpro_nag_paused', $pmpro_nag_paused, 'no');
//wisdom tracking turned off by default
update_option('pmpro_wisdom_opt_out', 1);
//db update
pmpro_db_delta();
//update version and return
pmpro_setOption("db_version", "1.71"); //no need to run other updates
return 1.71;
}