Title: tomhung's Replies | WordPress.org

---

# tomhung

  [  ](https://wordpress.org/support/users/tomhung/)

 *   [Profile](https://wordpress.org/support/users/tomhung/)
 *   [Topics Started](https://wordpress.org/support/users/tomhung/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tomhung/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tomhung/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tomhung/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tomhung/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tomhung/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Admin and Site Enhancements (ASE)] a select all button would be handy](https://wordpress.org/support/topic/a-select-all-button-would-be-handy/)
 *  [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [3 years ago](https://wordpress.org/support/topic/a-select-all-button-would-be-handy/#post-16884628)
 * +1 for this feature
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Admin and Site Enhancements (ASE)] [Feature Request] export settings](https://wordpress.org/support/topic/feature-request-export-settings-3/)
 *  [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [3 years ago](https://wordpress.org/support/topic/feature-request-export-settings-3/#post-16831050)
 * +1 I would like to use this on TONS of my sites. They all have similar ASE settings.
   Export/Import would help me migrate to this. Also a WP cli for the export import.
   It would be good to import from json local file or url. This way I could migrate
   all without thousands of clicks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simply Static - The Static Site Generator] 5.9.1](https://wordpress.org/support/topic/5-9-1/)
 *  [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/5-9-1/#post-15465915)
 * Once I turned off Basic Auth and removed the settings, and now it runs.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simply Static - The Static Site Generator] 5.9.1](https://wordpress.org/support/topic/5-9-1/)
 *  [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/5-9-1/#post-15462549)
 * Do not work with version the WordPress : 5.9.2
    No files No Activity Log Generate
   just spins and goes gray.
    -  This reply was modified 4 years, 4 months ago by [tomhung](https://wordpress.org/support/users/tomhung/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Content Shortcode] [switch] with pass {FIELD} or [get] not in docs](https://wordpress.org/support/topic/switch-with-pass-field-or-get-not-in-docs/)
 *  Thread Starter [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/switch-with-pass-field-or-get-not-in-docs/#post-13709699)
 * I needed to use the [-if] syntax for the inner IF statements
 *     ```
       [loop type=product]
         [if category=books]
           The book [field title-link] is
           [-if field=status value=in-stock]
             in stock.
             [-else]
             not available.
           [/-if]
         [else]
           [field title-link] is not a book.
         [/if]
       [/loop]
       ```
   
    -  This reply was modified 5 years, 7 months ago by [tomhung](https://wordpress.org/support/users/tomhung/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Content Shortcode] [if pass] not working](https://wordpress.org/support/topic/if-pass-not-working/)
 *  Thread Starter [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/if-pass-not-working/#post-13709299)
 * My issue is the docs are wrong. [https://gravistech.tinytake.com/media/ea2216](https://gravistech.tinytake.com/media/ea2216)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Interactive Image Map Plugin - Draw Attention] Mobile Firefox – touch scrolling not working](https://wordpress.org/support/topic/mobile-firefox-touch-scrolling-not-working/)
 *  [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mobile-firefox-touch-scrolling-not-working/#post-12907251)
 * Did you get this solved? I have the same issue.
    [http://new-caes.gravisdev.com/](http://new-caes.gravisdev.com/)
   at the bottom.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Admin Cache] Extending WP Admin Cache](https://wordpress.org/support/topic/extending-wp-admin-cache/)
 *  [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/extending-wp-admin-cache/#post-12488502)
 * In the index.php file there is a getPageHooks function. At the end they array_pop(
   $a, ‘widget.php’); to add widget.php to the pre-fetch.
 * I added another array_pop($a, ‘post.php’); to pre-fetch while on page/post edit.
   This worked for me. It adds it to the options and I can select it. It would be
   nice to have it in the interface but hacking their code works.
 *     ```
           function getPageHooks() {
               global $admin_page_hooks;
               $a = array();
               foreach ($admin_page_hooks as $key => $value) {
                   if (strpos($key, '.php') !== false && strpos($key, '/') === false) array_push($a, $key);
               }
               $args = array('show_in_menu' => true);
               foreach (get_post_types($args) as $type) {
                   if ($type != 'attachment') {
                       $url = 'edit.php?post_type=' . $type;
                       if (!in_array($url, $a)) array_push($a, $url);
                   }
               }
               array_push($a, 'widgets.php');
               array_push($a, 'post.php');
               sort($a);
               return $a;
           }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall] Extend Users Whitelist](https://wordpress.org/support/topic/extend-users-whitelist/)
 *  Thread Starter [tomhung](https://wordpress.org/support/users/tomhung/)
 * (@tomhung)
 * [7 years ago](https://wordpress.org/support/topic/extend-users-whitelist/#post-11676362)
 * Can I test for the role and set $_SESSION[‘nfw_goodguy’] = 1 in my fucntions.
   php file? Will respect that if I set it?

Viewing 9 replies - 1 through 9 (of 9 total)