WP_Image_Editor::update_size
Sets current image size.
Метод класса: WP_Image_Editor{}
Хуков нет.
Возвращает
true.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->update_size( $width, $height );
- $width(int)
- .
По умолчанию:null - $height(int)
- .
По умолчанию:null
Список изменений
| С версии 3.5.0 | Введена. |
Код WP_Image_Editor::update_size() WP Image Editor::update size WP 7.0
protected function update_size( $width = null, $height = null ) {
$this->size = array(
'width' => (int) $width,
'height' => (int) $height,
);
return true;
}