| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public static function create_settings() { |
||
| 21 | register_setting( |
||
| 22 | Bulk_Delete::SETTING_OPTION_GROUP, // Option group |
||
| 23 | Bulk_Delete::SETTING_OPTION_NAME, // Option name |
||
| 24 | array( 'BD_Settings', 'check_license' ) // Sanitize |
||
| 25 | ); |
||
| 26 | |||
| 27 | add_settings_section( |
||
| 28 | Bulk_Delete::SETTING_SECTION_ID, // ID |
||
| 29 | __( 'Add Addon License', 'bulk-delete' ), // Title |
||
| 30 | '__return_null', // Callback |
||
| 31 | Bulk_Delete::ADDON_PAGE_SLUG // Page |
||
| 32 | ); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Runs just after registering license form fields. |
||
| 36 | * |
||
| 37 | * This action is primarily for adding more fields to the license form |
||
| 38 | * |
||
| 39 | * @since 5.0 |
||
| 40 | */ |
||
| 41 | do_action( 'bd_license_field' ); |
||
| 42 | } |
||
| 66 |