How to change the label text in default setting pages?

You can modify the labels using gettext filter hook ex: add_filter( ‘gettext’, ‘theme_change_label_names’); function theme_change_label_names($translated_text){ if (is_admin()){ switch ( $translated_text ) { case ‘Site Title’ : $translated_text = __( ‘New Site Title label’, ‘theme_text_domain’ ); break; case ‘Tagline’ : $translated_text = __( ‘new Tagline label’, ‘theme_text_domain’ ); break; } } return $translated_text; }

ACF get field label in custom code

Try this, which worked for me: <?php $fields = get_field_objects(); // I changed from get_fields() if( $fields ): ?> <ul> <?php // I changed $value to $field (i.e. the variable name) foreach( $fields as $name => $field ): if (stripos($name, ‘isbn’) !== false) : ?> <li><b><?php echo $field[‘label’]; ?></b> <?php echo $field[‘value’]; ?></li> <?php endif; … Read more

How can I use a different default admin menu icon for custom post type?

add_action( ‘admin_head’, ‘custom_post_type_icon’ ); function custom_post_type_icon() { ?> <style type=”text/css” media=”screen”> #menu-posts-intranet-pages .wp-menu-image { background: url(“PATH TO SMALL ICON”) no-repeat 6px 6px !important; } #menu-posts-intranet-pages:hover .wp-menu-image, #menu-posts-intranet-pages.wp-has-current-submenu .wp-menu-image { background-position:6px -16px !important; } #icon-edit.icon32-posts-intranet-pages {background: url(“PATH TO BIG ICON”) no-repeat;} </style> <?php } This way is much better I believe as it also allows to … Read more

How can I change the label “Comments” to “Review” everywhere in the WP installation without translation

You can try the gettext filter. According to the Codex: This filter hook is applied to the translated text by the internationalization functions (__(), _e(), _x(), etc.). This filter is always applied even if internationalization is not in effect, and if the text domain has not been loaded. Here’s an example: function custom_gettext( $translated_text, $untranslated_text, … Read more