本文整理匯總了PHP中WP_Customize_Image_Control::to_json方法的典型用法代碼示例。如果您正苦於以下問題:PHP WP_Customize_Image_Control::to_json方法的具體用法?PHP WP_Customize_Image_Control::to_json怎麽用?PHP WP_Customize_Image_Control::to_json使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WP_Customize_Image_Control
的用法示例。
在下文中一共展示了WP_Customize_Image_Control::to_json方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: to_json
/**
* Refresh the parameters passed to the JavaScript via JSON.
*
* @since 4.3.0
* @access public
*
* @see WP_Customize_Control::to_json()
*/
public function to_json()
{
parent::to_json();
$this->json['width'] = absint($this->width);
$this->json['height'] = absint($this->height);
$this->json['flex_width'] = absint($this->flex_width);
$this->json['flex_height'] = absint($this->flex_height);
}
開發者ID:AndreyLanko,項目名稱:perevorot-prozorro-wp,代碼行數:16,代碼來源:class-wp-customize-cropped-image-control.php
示例2: to_json
public function to_json()
{
parent::to_json();
}
示例3: to_json
/**
* TODO: Is this function necessary?
*/
public function to_json()
{
// Just calling the parent to_json method here
parent::to_json();
}