Automattic\WooCommerce\EmailEditor\Engine\Renderer\ContentRenderer\Postprocessors
Border_Style_Postprocessor::is_nonzero_width
Checks if a border width is nonzero.
Method of the class: Border_Style_Postprocessor{}
No Hooks.
Returns
true|false
.
Usage
// private - for code of main (parent) class only $result = $this->is_nonzero_width( $width ): bool;
- $width(string) (required)
- The width value.
Border_Style_Postprocessor::is_nonzero_width() Border Style Postprocessor::is nonzero width code WC 9.9.5
private function is_nonzero_width( string $width ): bool { return preg_match( '/^0([a-z%]+)?$/', trim( $width ) ) ? false : true; }