HEX
Server: nginx/1.24.0
System: Linux VM-8-5-opencloudos 6.6.47-12.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 24 16:15:42 CST 2024 x86_64
User: www (1000)
PHP: 8.0.26
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/aiwellbore.com/wp-content/plugins/restrict-content/legacy/includes/integrations.php
<?php
/**
 * Integrations with other plugins.
 *
 * @package     Restrict Content
 * @subpackage  Plugin Integrations
 * @copyright   Copyright (c) 2017, Sandhills Development, LLC
 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
 */

/**
 * Registers the Access Control tab on the WooCommerce product edit page.
 *
 * @since 2.2
 * @param $tabs array
 *
 * @return array
 */
function rc_add_woocommerce_product_data_tab( $tabs ) {

	$tabs['access'] = array(
		'label'  => __( 'Access Control', 'restrict-content' ),
		'target' => 'rc_access_control',
		'class'  => array(),
	);

	return $tabs;
}
add_filter( 'woocommerce_product_data_tabs', 'rc_add_woocommerce_product_data_tab' );

/**
 * Renders the HTML for the Access Control tab on the WooCommerce product edit page.
 *
 * @since 2.2
 */
function rc_add_woocommerce_product_data_tab_html() {

	?>

	<div id="rc_access_control" class="panel woocommerce_options_panel">
		<div class="options_group">
			<p>
				<strong><?php _e( 'Unlock product access control features with Restrict Content Pro', 'restrict-content' ); ?></strong>
			</p>
			<p>
				<?php printf(
					__( 'Restrict Content Pro enables you to control access to who can view and/or purchase your products, and optionally you can offer member-only discounts to paid subscribers. <a href="%s" target="_blank" rel="noopener noreferrer">Learn more...</a>', 'restrict-content' ),
					'https://restrictcontentpro.com/?utm_campaign=restrict-content&utm_medium=admin&utm_source=integration&utm_content=woocommerce-product'
				); ?>
			</p>
		</div>
	</div>

	<?php
}
add_action( 'woocommerce_product_data_panels', 'rc_add_woocommerce_product_data_tab_html' );