ACF_Admin::admin_footer_text
Modifies the admin footer text.
Method of the class: ACF_Admin{}
No Hooks.
Returns
String.
Usage
$ACF_Admin = new ACF_Admin(); $ACF_Admin->admin_footer_text( $text );
- $text(string) (required)
- The current admin footer text.
Changelog
| Since 5.9.0 | Introduced. |
ACF_Admin::admin_footer_text() ACF Admin::admin footer text code ACF 6.8.8
public function admin_footer_text( $text ) {
$wp_engine_link = acf_add_url_utm_tags( 'https://wpengine.com/', 'bx_prod_referral', acf_is_pro() ? 'acf_pro_plugin_footer_text' : 'acf_free_plugin_footer_text', false, 'acf_plugin', 'referral' );
$acf_link = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/', 'footer', 'footer' );
if ( acf_is_pro() ) {
return sprintf(
/* translators: This text is prepended by a link to ACF's website, and appended by a link to WP Engine's website. */
'<a href="%1$s" target="_blank">ACF®</a> and <a href="%1$s" target="_blank">ACF® PRO</a> ' . __( 'are developed and maintained by', 'acf' ) . ' <a href="%2$s" target="_blank">WP Engine</a>.',
$acf_link,
$wp_engine_link
);
}
return sprintf(
/* translators: This text is prepended by a link to ACF's website, and appended by a link to WP Engine's website. */
'<a href="%1$s" target="_blank">ACF®</a> ' . __( 'is developed and maintained by', 'acf' ) . ' <a href="%2$s" target="_blank">WP Engine</a>.',
$acf_link,
$wp_engine_link
);
}