Automattic\WooCommerce\EmailEditor\Engine
Settings_Controller::parse_number_from_string_with_pixels
Returns float number parsed from string with pixels.
Method of the class: Settings_Controller{}
No Hooks.
Returns
float.
Usage
$Settings_Controller = new Settings_Controller(); $Settings_Controller->parse_number_from_string_with_pixels( $value ): float;
- $value(string) (required)
- Value with pixels.
Settings_Controller::parse_number_from_string_with_pixels() Settings Controller::parse number from string with pixels code WC 10.5.0
public function parse_number_from_string_with_pixels( string $value ): float {
return (float) str_replace( 'px', '', $value );
}