Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Urls | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| get_newsletter_settings_url | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * URL helper for newsletter settings. |
| 4 | * |
| 5 | * @package automattic/jetpack-newsletter |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\Newsletter; |
| 9 | |
| 10 | /** |
| 11 | * A class responsible for generating newsletter settings URLs. |
| 12 | */ |
| 13 | class Urls { |
| 14 | |
| 15 | /** |
| 16 | * Get the newsletter settings URL. |
| 17 | * |
| 18 | * @return string The newsletter settings URL. |
| 19 | */ |
| 20 | public static function get_newsletter_settings_url() { |
| 21 | return admin_url( 'admin.php?page=jetpack-newsletter' ); |
| 22 | } |
| 23 | } |