mattnyy
Forum Replies Created
-
Also side note, a feature that lets you choose late payment notification date, I had to turn mine off and manual enable it and send messages as people get spammed on the due date.
Forum: Fixing WordPress
In reply to: User Profile editsRight that’s what I’m asking, because the only way I’ve seen is too remove code from the user_edits file in wp_admin. I know its no good to do, so was wondering if anyone had my issue before and has a plugin or know what code to insert into the child theme to solve this.
Forum: Plugins
In reply to: [WP-Invoice - Web Invoice and Billing] Question on what user sees on profile.I don’t know if this is just a quick hack or something you can use on your end for the update. But I got some help and implemented this……
Find in /wp-content/plugins/wp-invoice/lib/ui/profile_page_content.php
<table class="form-table" ><tr> <th><h3><?php _e('Billing / Invoicing Info', ud_get_wp_invoice()->domain) ?></h3></th> <td> <input type="button" onclick="window.location.href='<?php echo $wpi_settings['links']['manage_invoice'].$email; ?>'" class="button" value="<?php echo __('Send New Invoice', ud_get_wp_invoice()->domain) ?>" id="crm_new_invioce"/> </td> </tr> </table>
Edit
1. Add this before the <table> tag:
<?php if ( current_user_can('administrator') ) : ?>
2. Add this after the </table> tag:
<?php endif; ?>
After all said and done only the admin can see that Send New Invoice Button.
Forum: Developing with WordPress
In reply to: Admin viewable only button?Awesome, thank you Sally! Worked perfectly ??
Forum: Plugins
In reply to: [WP-Invoice - Web Invoice and Billing] Question on what user sees on profile.So just to be sure the area circles in this image cannot be made to be seen by admins only? Unless I get some custom coding?
https://veteranpoolcare.com/imagesTEST/Untitled.png
- This reply was modified 7 years, 4 months ago by mattnyy. Reason: link did not show