GC_Customize_Manager::get_control()
最后更新于:2021-11-27 00:57:16
GC_Customize_Manager::get_control( string$id)Retrieve a customize control.
参数
- $id
-
(string) (Required) ID of the control.
响应
(GC_Customize_Control|void) The control object, if set.
源文件
文件: gc-includes/class-gc-customize-manager.php
public function get_control( $id ) {
if ( isset( $this->controls[ $id ] ) ) {
return $this->controls[ $id ];
}
}