Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Add branding to the admin footer, linking back to GoDaddy. #111

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions functions.php
Expand Up @@ -511,3 +511,30 @@ function primer_has_active_categories_reset() {
add_action( 'edit_category', 'primer_has_active_categories_reset' );
add_action( 'delete_category', 'primer_has_active_categories_reset' );
add_action( 'save_post', 'primer_has_active_categories_reset' );

/**
* Link back to GoDaddy in the Admin Footer
*
* @return mixed
*
* @since 1.0.0
*/
function primer_admin_footer_link( $footer_text ) {

// Get the active theme name
$theme_name = wp_get_theme();

$additional_text = sprintf(
_x(
'%1$s Theme by <a href="%2$s" target="_blank">GoDaddy</a>.',
'First: The active theme name. Second: URL to Godaddy.',
'primer'
),
$theme_name,
__( 'https://www.godaddy.com/' )
);

return wp_kses_post( $footer_text . ' | <span>' . $additional_text . '</span>' );

}
add_filter( 'admin_footer_text', 'primer_admin_footer_link' );