ACF PRO stubs also installed other dependencies like WP stubs.
composer require php-stubs/acf-pro-stubs
If you're not installing the ACF stubs, add the WP stubs using the below command:
ACF PRO stubs also installed other dependencies like WP stubs.
composer require php-stubs/acf-pro-stubs
If you're not installing the ACF stubs, add the WP stubs using the below command:
| // https://grack.com/blog/2015/01/09/abusing-css3-selectors/ | |
| // https://grack.com/assets/2015/01/nth-child/image-count.html | |
| /* One */ | |
| img:only-child { | |
| max-width: 100%; | |
| } | |
| /* Two */ |
| pbcopy < ~/.ssh/id_rsa.pub |
| <?php | |
| add_action( 'init', 'my_custom_post_types_init', 0 ); | |
| function my_custom_post_types_init() | |
| { | |
| /** | |
| * Register the post types | |
| */ | |
| $my_post_types = array( | |
| 'property' => array( | |
| 'post_type_name_singular' => 'Property', |
The documentation list all defaults and possibilities.
Stackoverflow // Remove from the remote
git push --delete origin YOUR_TAG_NAME
Stackoverflow // Remove from local
git tag -d YOUR_TAG_NAME
After working with branch per feature for a while any Git-repository becomes a mess of outdated and not finished branches.
To deal with this issue, we need to clean-up three kinds of branches:
| <?php | |
| function array_flatten($arrays) { | |
| if ( !is_array($arrays) ) | |
| { | |
| return false; | |
| } | |
| $result = array(); | |
| foreach ( $arrays as $key => $value ) | |
| { |
sudo tccutil reset Accessibility