HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/testingff/public_html/fdfctr/wp-content/plugins/connections/includes/Hook/Action.php
<?php
/**
 * Run `cn_` namespaced actions.
 *
 * @since 10.4.31
 *
 * @category   WordPress\Plugin
 * @package    Connections Business Directory
 * @subpackage Connections\Hook
 * @author     Steven A. Zahm
 * @license    GPL-2.0+
 * @copyright  Copyright (c) 2022, Steven A. Zahm
 * @link       https://connections-pro.com/
 */

namespace Connections_Directory\Hook;

/**
 * Class Action
 *
 * @package Connections_Directory\Hook
 */
final class Action {

	/**
	 * Run admin actions.
	 *
	 * @since 0.7.5
	 * @internal
	 *
	 * @phpcs:disable WordPress.Security.NonceVerification.Missing
	 * @phpcs:disable WordPress.Security.NonceVerification.Recommended
	 */
	public static function run() {

		if ( isset( $_POST['cn-action'] ) ) {

			do_action( 'cn_' . sanitize_key( $_POST['cn-action'] ) );
		}

		if ( isset( $_GET['cn-action'] ) ) {

			do_action( 'cn_' . sanitize_key( $_GET['cn-action'] ) );
		}
	}
	// phpcs:enable
}