Skip to content

Commit f60f7e9

Browse files
committed
add WP2Static admin footer text
1 parent ae7be0f commit f60f7e9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/WordPressAdmin.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,11 @@ public static function registerHooks( string $bootstrap_file ) : void {
356356
[ AdminNotices::class, 'showAdminNotices' ],
357357
0
358358
);
359+
360+
add_filter(
361+
'admin_footer_text',
362+
[ self::class, 'wp2staticAdminFooterText' ]
363+
);
359364
}
360365
}
361366

@@ -419,6 +424,12 @@ public static function wp2staticAdminScripts() : void {
419424
wp_enqueue_script( 'wp2static_admin_scripts' );
420425
}
421426

427+
public static function wp2staticAdminFooterText( $content ) : string {
428+
return 'Thank you for using ' .
429+
'<a href="https://link.strattic.com/wp2static-footer" target="_blank">WP2Static</a> by ' .
430+
'<a href="https://link.strattic.com/strattic-wp2static-footer" target="_blank">Strattic</a>.';
431+
}
432+
422433
/**
423434
* Add extra link to WP2Static's Plugins page entry
424435
*

0 commit comments

Comments
 (0)