PhpStorm now bundles WordPress coding style natively, starting from version 8.
- Go to
Project Settings
>Code Style
>PHP
. - Select
Set From...
(top right of window) >Predefined Style
>WordPress
.
No longer need to muck with this import! :)
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
function disable_elementor_dashboard_overview_widget() { | |
remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal'); | |
} | |
add_action('wp_dashboard_setup', 'disable_elementor_dashboard_overview_widget', 40); |
<?php | |
/* | |
Plugin Name: Custom Block Pattern Builder | |
Description: Plugin enables visual creation of block patterns in a dedicated CPT | |
Author: Name Lastname | |
Author URi: https://sitename.domain | |
Version: 1.0.0 | |
Text Domain: prefix_ | |
License: GPL v2 or later | |
License URI: https://www.gnu.org/licenses/gpl-2.0.txt |