Cant add custom code if the plugin is active
-
Hi, im trying to add a button to the userslist nav. It does not work if the plugin is activated – my code uses default action hook and is ok. Here the code – do you know whats the problem?
add_action('manage_users_extra_tablenav', 'users_overviewlist_extra_tablenav_', 10, 1); function users_overviewlist_extra_tablenav_($which) { if ($which === 'top') { ?> <div class="alignleft actions custom"> <a class="button-primary" href="/wp-admin/users.php?role=customer"><?php _e('List of Customers', 'v-framework'); ?> →</a> </div> <?php } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cant add custom code if the plugin is active’ is closed to new replies.