👁 查看:pocket-holder.php
路径:/home/forge/kingkrunch.com/wp/wp-content/plugins/contact-form-7/includes/pocket-holder.php
大小:325 B · 修改:2026-08-18 00:42:40 · 权限:0644 · 可写
<?php

/**
 * Handy trait provides methods to handle dynamic properties.
 */
trait WPCF7_PocketHolder {

	protected $pocket = array();

	public function pull( $key ) {
		if ( isset( $this->pocket[$key] ) ) {
			return $this->pocket[$key];
		}
	}

	public function push( $key, $value ) {
		$this->pocket[$key] = $value;
	}

}