| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function get_settings() { |
||
| 49 | // Get settings. |
||
| 50 | $settings = apply_filters( 'give_settings_api', array( |
||
| 51 | array( |
||
| 52 | 'id' => 'give_tools_api', |
||
| 53 | 'type' => 'title', |
||
| 54 | 'table_html' => false |
||
|
|
|||
| 55 | ), |
||
| 56 | array( |
||
| 57 | 'id' => 'api', |
||
| 58 | 'name' => esc_html__( 'API', 'give' ), |
||
| 59 | 'type' => 'api', |
||
| 60 | ), |
||
| 61 | array( |
||
| 62 | 'id' => 'give_tools_api', |
||
| 63 | 'type' => 'sectionend', |
||
| 64 | 'table_html' => false |
||
| 65 | ) |
||
| 66 | )); |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Filter the settings. |
||
| 70 | * |
||
| 71 | * @since 1.8 |
||
| 72 | * @param array $settings |
||
| 73 | */ |
||
| 74 | $settings = apply_filters( 'give_get_settings_' . $this->id, $settings ); |
||
| 75 | |||
| 76 | // Output. |
||
| 77 | return $settings; |
||
| 78 | } |
||
| 79 | } |
||
| 84 |