sarahtopfstaedt
Forum Replies Created
-
Thanks a lot! Now it`s working and it clearify a lot for me ??
The shortcode on frontend is not the problem – as I said, only if I add the custom tab twice, I can subscribe for the newsletter without an error. And that’s what is strange for me. I used the custom code for extend the Ultimate Member Tabs from the documentation and wonder what’s the problem in my specific case.
- This reply was modified 3 weeks, 1 day ago by sarahtopfstaedt.
Actually, the code works fine. Only the
[newsletter_form /]
only works if I add the tab twice – and then only the second tab is working. I tested it withapply_shortcodes
– the issue is the same.Thanks! But actually, I did a test with a user who is still in pending but nothing is shown up next to “Users”. So, I don’t know if this is a bug or something else. I tried it on two different sites, same effect – no counting ??
I tried this, but I think it’s not good:
function add_user_menu_notification() {
global $menu;
// Ultimate Member Status 'pending' in der wp_usermeta-Tabelle abfragen
global $wpdb;
$user_count = $wpdb->get_var(
$wpdb->prepare(
"SELECT COUNT(*) FROM {$wpdb->users} u
INNER JOIN {$wpdb->prefix}usermeta um ON u.ID = um.user_id
WHERE u.roles LIKE '%subscriber%'
AND um.meta_key = '_um_status'
AND um.meta_value = 'awaiting_admin_review'"
)
);
if ( $user_count ) {
// Durchsuchen des Menüs, um die Benutzeranzeige zu finden
foreach ( $menu as $key => $value ) {
if ( isset($menu[$key][2]) && $menu[$key][2] == 'users.php' ) {
// Anzeige der Anzahl der nicht freigegebenen 'subscriber' im Menü
$menu[$key][0] .= ' <span class="awaiting-mod">' . $user_count . '</span>';
return;
}
}
}
}
add_action( 'admin_menu', 'add_user_menu_notification' );Forum: Plugins
In reply to: [GD Rating System] Shortcode stopped working with 3.6.1Same issue still here… ??
Hi there,
Yes, that works! Thanks a lot ??
Forum: Plugins
In reply to: [LH Archived Post Status] Avada FAQs – no password protect option anymoreActually, Avada is not a plugin, it’s a theme. A very popular, even. The passwort protected status comes from WordPress Core and it disappears on the FAQs which comes with Avada.
Forum: Plugins
In reply to: [GD Rating System] Shortcode stopped working with 3.6.1Hi there,
the same issue appears on our site. We worked with Avada. I also have rolled back to 3.6.
Forum: Plugins
In reply to: [CodeMirror Blocks] No Copy button is shownIt is enabled in the code editor: https://ibb.co/B4LkZwb
Forum: Plugins
In reply to: [CodeMirror Blocks] No Copy button is shownThe control panel is enabled. https://ibb.co/YjSwKs1
Forum: Plugins
In reply to: [CodeMirror Blocks] No Copy button is shown