Disable secondary button in modal login

Simply delete this in userpro/templates/login.php <?php if ($args[“{$template}_button_secondary”]) { ?> <input type=”button” value=” <?php echo $args[“{$template}_button_secondary”]; ?>” class=”userpro-button secondary” data-template=”<?php echo $args[“{$template}_button_action”]; ?>” /> <?php } ?> You can create a folder in your themes directory “userpro” with a subfolder “templates” an put the modified file login.php there. In this […]

Show only social buttons on comments

In your comments template you could do something like <?php echo do_shortcode(‘[userpro_social_connect]’); ?> See http://userproplugin.com/userpro/forums/topic/finally-social-connect-shortcode-only/ for shortcode options.

Show only a WooCommerce Review in activity feed

1. Open userpro > addons > social > functions >api.php. 2. Look for the function “log_action()”. You can add a new log action case and markup here. 3. Open userpro > addons > social > functions >log_actions.php. 4. This is where you can see examples of hooking into tha action […]

Use the Date Picker Field

Add that field to your forms. Create a new field, and choose “Date Picker” as field type. Move the field to your register/profile forms (Drag and drop the field you created). You have a fully functional Date Picker field as seen in the Register demo of this website.

Link the author page to the user profile

Do it with a function (add code inside the functions.php of your template). With plugins you may have problems with permalinks. Before: website.com/author/john.doe After: website.com/profile/john.doe Code: add_action(‘init’, ‘change_author_base’); function change_author_base() { global $wp_rewrite; $author_slug=‘profile’; // change the name for ‘author’ //here $wp_rewrite->author_base=$author_slug; }

Integrate User Pro with Sahifa Theme Comments

Open up wp_list_comments.php file from dashboard>appearance>editor or from wp-contents/themes/sahifa/includes Find the line : .comment-avatar { overflow:hidden; width:45px; height:45px; margin:0 10px 5px -30px; background: white; padding: 2px; -moz-border-radius: 1px; -webkit-border-radius: 1px; box-shadow: 0 0 3px #B5B5B5; -moz-box-shadow: 0 0 3px #b5b5b5; -webkit-box-shadow: 0 0 3px #B5B5B5; float:left; } Replace with .comment-avatar […]

Send hidden field data to user_meta table

There are hooks in register do_action(‘userpro_before_fields’, $hook_args); You can use that hook to add a hidden input or any kind of inputs before fields. These fields can later be processed after new registration – there’s another hook that runs when profile is updated (e.g. when someone register, edit profile, etc) […]