403Webshell
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/learnpress-woo-payment/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/plugins/learnpress-woo-payment/config/settings.php
<?php
/**
 * Settings for LP Woo Payment
 */

$desc_guest_checkout = sprintf(
	'%s<br><strong><i style="color: red">%s <a href="%s">WooCommerce Setting</a> %s"</i></strong>',
	__( 'Enable to redirect to page Checkout when add to cart', 'learnpress-woo-payment' ),
	__( 'To enable Guest checkout, please go to', 'learners-woo-payment' ),
	home_url( 'wp-admin/admin.php?page=wc-settings&tab=account' ),
	__( 'then enable 2 options: "Allow customers to place orders without an account" and "Allow customers to create an account during checkout', 'learners-woo-payment' )
);

$desc_enable = sprintf(
	'%s <br/> <a href="%s">%s</a>',
	__(
		'If enabled system will use Payment, Checkout page, Options of Woocommerce instead of Learnpress',
		'learnpress-woo-payment'
	),
	add_query_arg(
		array(
			'page' => 'wc-settings',
			'tab'  => 'checkout',
		),
		admin_url( 'admin.php' )
	),
	__( 'Set Woocommerce Payment methods', 'learners-woo-payment' )
);

$label_buy_via_product = __( 'Buy courses via Product', 'learnpress-woo-payment' );
if ( class_exists( 'LP_Addon_Upsell_Preload' ) ) {
	$label_buy_via_product = __( 'Buy courses/package via Product', 'learnpress-woo-payment' );
}

$settings = array(
	array(
		'title' => esc_html__( 'General', 'learners-woo-payment' ),
		'type'  => 'title',
	),
	array(
		'title'   => __( 'Enable', 'learnpress-woo-payment' ),
		'id'      => '[enable]',
		'default' => 'yes',
		'type'    => 'checkbox',
		'class'   => 'woo_payment_enabled',
		'desc'    => $desc_enable,
	),
	array(
		'title'   => $label_buy_via_product,
		'id'      => 'buy_course_via_product',
		'default' => 'no',
		'type'    => 'checkbox',
		'class'   => '',
		'desc'    => __(
			'If enable system will access assign courses to product, and user want enroll/buy course must buy via product',
			'learnpress-woo-payment'
		),
	),
	array(
		'title'   => esc_html__( 'Redirect to Woo checkout', 'learnpress-woo-payment' ),
		'id'      => 'redirect_to_checkout',
		'default' => 'no',
		'type'    => 'checkbox',
		'class'   => '',
		'desc'    => $desc_guest_checkout,
	),
	array(
		'title'   => esc_html__( 'Enable run background', 'learnpress-woo-payment' ),
		'id'      => 'run_background',
		'default' => 'no',
		'type'    => 'checkbox',
		'class'   => '',
		'desc'    => esc_html__( 'If enable, courses of LP Order will handle in the background', 'learnpress-woo-payment' ),
	),
	array(
		'type' => 'sectionend',
	),
);

return apply_filters( 'lp-woo/settings', $settings );

Youez - 2016 - github.com/yon3zu
LinuXploit