Mauro
Forum Replies Created
-
Forum: Plugins
In reply to: [Regenerate Thumbnails] How to delete unused Thumbnails?Same here, it’s mentioned in the plug-in description and there’s also a hint to the feature when you go regenerate thumbnails for a single image but there’s not button or link to do that.
Regenerating the full media library won’t remove the old sizes automatically.
How do we do this?Forum: Plugins
In reply to: [WangGuard] Bulk Check Users command not there?https://github.com/mauro/wangguard-check-unverified-users
This plug-in adds a tool to check unverified users against the WuangGuard protection API. Requires the WuangGuard Plug-in to be active and setup with an API key.
– Install this plugin by uploading it via FTP to your plugins directory in WordPress
– Make sure that your WuangGuard plug-in is setup and that you have added your API Key to its settings.
– Activate this plugin through the ‘Plugins’ screen in WordPress.
– Use the “Tools -> WangGuard Check Unverified Users” screen and follow onscreen instructions.Note: the read me file is somewhat incomplete. I was thinking of getting this on the public WordPress plug-ins directory but given its nature of being sort of a hack, sharing on github looks like a better alternative. I’ll update the readme to the github format when I catch some time.
Forum: Plugins
In reply to: [WangGuard] Bulk Check Users command not there?Hi athemes,
I will get back to you as soon as I put the workaround I created on GitHub and share a link here.
Thanks,
MauroForum: Plugins
In reply to: [WangGuard] Bulk Check Users command not there?Hello Jose,
Thank you for getting back to me.
I’ve created a plug-in that will bulk check unverified users only and solved my issue.It just didn’t make sense to me to go and re-check the whole user base all over again: that’s a lot of useless hits to your API, it is an extremely time consuming process, and I’d have risked to incur in the same issue of getting a network failure at some point in the process.
I would recommend you change the Wizard so recognises already checked users and only checks the ones that still need verification (or at least add that as an option), and to add a bulk check users in the WangGuard Users screen.
Thank you,
Mauro.Forum: Plugins
In reply to: [Polylang] How to pass a language parameter to wp_nav_menu ?Here is my current code…
// Create an array with all the languages, cleanded up $languages = pll_the_languages(array('raw'=>1)); $menus = array(); foreach($languages as $language) { //$current_language = $language['slug']; $theme_location = 'mobile-app-menu'; $locations = get_nav_menu_locations(); $menu_id = $locations[$theme_location]; $menu_items = wp_get_nav_menu_items($menu_id); $menu = array(); foreach ($menu_items as $menu_item) { $trimmed_menu_item['object_id'] = $menu_item->object_id; $trimmed_menu_item['menu_item_parent'] = $menu_item->menu_item_parent; $trimmed_menu_item['menu_order'] = $menu_item->menu_order; $trimmed_menu_item['title'] = $menu_item->title; $trimmed_menu_item['description'] = $menu_item->description; $trimmed_menu_item['post_status'] = $menu_item->post_status; $trimmed_menu_item['object'] = $menu_item->object; $trimmed_menu_item['url'] = $menu_item->url; array_push($menu, $trimmed_menu_item); } array_push($menus, $menu); } return $menus;