I'm problems solution (haha, ̶ s̶h̶u̶t̶ ̶u̶p̶ ).
Are u ready?
Open your CMD, Power Shell and among others... (admin permission)
<?php | |
/** | |
* Check string is JSON | |
* | |
* @param string $json JSON to check | |
* | |
* @return boolean|array | |
*/ | |
function is_json( $json = null, $_return = false ){ | |
if( ! is_string( $json ) ){ |
<?php | |
function in_string( $needle, $haystack ){ | |
if( !isset( $needle ) || isset( $needle ) && !is_string( $needle ) ){ | |
$error['needle'] = 'Param $needle invalid'; | |
} | |
if( !isset( $haystack ) || isset( $haystack ) && !is_string( $haystack ) ){ | |
$error['$haystack'] = 'Param $needle invalid'; | |
} |
[ | |
{ | |
"name": "Aruba", | |
"code": "AW", | |
"dialling_code": "297" | |
}, | |
{ | |
"name": "Afghanistan", | |
"code": "AF", | |
"dialling_code": "93" |
<?php | |
function initial_letters( $char ){ | |
// Defaults | |
$pos = 0; | |
$saida = ''; | |
if( !isset( $char ) ){ | |
trigger_error( "Insert text", E_USER_ERROR ); | |
return false; | |
} |
<?php | |
// Required PHP version >= 4.2.0 | |
function is_image( $filename ){ | |
$getImageSize = getimagesize( $filename ); | |
$image_type = $getImageSize[2]; | |
if( in_array( $image_type, array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP ) ) ) | |
return true; | |
return false; |
truncate table `table_name_here` |
*, ::after, ::before { | |
font-family:inherit; | |
text-rendering:optimizeLegibility; | |
text-stroke:1px transparent; | |
-webkit-text-size-adjust:100%; | |
-moz-text-size-adjust:100%; | |
-ms-text-size-adjust:100%; | |
-webkit-font-smoothing:antialiased; | |
-moz-font-smoothing:antialiased; | |
-ms-font-smoothing:antialiased; |
<?php | |
add_filter( 'woocommerce_checkout_fields' , 'wp_remove_fields_checkout' ); | |
function wp_remove_fields_checkout( $fields ){ | |
/** | |
* All unset \/ | |
* Nome | |
* Sobrenome | |
* Empresa | |
* Endereço |