Add custom profile info into Feed

Check out either the the_content_feed and the_excerpt_rss filters or use the regular content and excerpt filters with the is_feed conditional function. The following should get you on the right track: function wpse_140401_add_to_feed( $content ) { $twitter_handle = /* grab handle */; if ( is_feed() ) { $content .= ‘<p>’ . $twitter_handle . ‘</p>’; } return … Read more

How to show a gloabl message on a user profile page (in back end)?

add this code to your function.php <?php function showMessage($message, $errormsg = false) { if ($errormsg) { echo ‘<div id=”message” class=”error”>’; } else { echo ‘<div id=”message” class=”updated fade”>’; } echo “<p><strong>$message</strong></p></div>”; } function showAdminMessages() { showMessage(“This is my message.”, true); } add_action(‘admin_notices’, ‘showAdminMessages’); ?>

How to hide unused profile fields?

You have the JS part down, in order to have this script run, you can use the add_action function and hook it to the admin_head. This will run your custom JS script in the header of the wp-admin area. Below is the code that you can add to your child theme’s function.php file. I’ve added … Read more

Remove user profile field [duplicate]

Part 1 Create wpse_admin_user.css file and put it in your current theme, where style.css is: tr.user-admin-color-wrap, tr.user-admin-bar-front-wrap { display: none; } Add this code to your theme’s functions.php: function wpse_user_admin_script() { wp_register_style( ‘wpse_admin_user_css’, get_stylesheet_directory_uri() . ‘/wpse_admin_user.css’ ); wp_enqueue_style( ‘wpse_admin_user_css’ ); } add_action( ‘admin_enqueue_scripts’, ‘wpse_user_admin_script’ ); Part 2 Install and activate Custom User Profile Photo plugin. … Read more

Customize profile.php

There are probably several options to achieve your goal, below is one of the options shown by me. (these 2 functions belong to each other) Please make always a copy of functions.php before you start to edit/add a plugin or other code snippet. /** * Remove fields from an user profile page for all except … Read more