Title: one3rdnerd's Replies | WordPress.org

---

# one3rdnerd

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 360 total)

1 [2](https://wordpress.org/support/users/one3rdnerd/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/one3rdnerd/replies/page/3/?output_format=md)…
[22](https://wordpress.org/support/users/one3rdnerd/replies/page/22/?output_format=md)
[23](https://wordpress.org/support/users/one3rdnerd/replies/page/23/?output_format=md)
[24](https://wordpress.org/support/users/one3rdnerd/replies/page/24/?output_format=md)
[→](https://wordpress.org/support/users/one3rdnerd/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] If Menu blocks Appearance > Menus](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18799265)
 * Ah, okay. I wasn’t even aware of that.
 * Care to share your snippet?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] If Menu blocks Appearance > Menus](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18799238)
 * [@veryaca](https://wordpress.org/support/users/veryaca/)
 * I’m not having any issues. Can you provide more info? What versions of WP, this
   plugin etc. What is your actual issue? You can’t access the Appearance > Menu’s?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] If Menu blocks Appearance > Menus](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months ago](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18750501)
 * Glad to hear it [@oliverfritsch](https://wordpress.org/support/users/oliverfritsch/)
 * I use the the Code Snippets plugin, in that one, you can just set it to only 
   run in the dashboard on the right sidebar, so the is_admin() isn’t needed. I 
   guess it depends on your plugin. Thanks for sharing though as that might be useful
   for others that don’t have that control.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] If Menu blocks Appearance > Menus](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18745008)
 * [@veryaca](https://wordpress.org/support/users/veryaca/)
 * You’re welcome.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] 504 Gateway Time-out](https://wordpress.org/support/topic/504-gateway-time-out-36/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/504-gateway-time-out-36/#post-18739631)
 * [@jonkastonka](https://wordpress.org/support/users/jonkastonka/) No worries, 
   I literally posted that solution a few minutes before I shared it here.
 * I was going to open a new thread and saw several with what seemed like the same
   issue. Solved it, shared on one and then posted the links to the others, so everyone
   got the notification.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] PRO stopped working](https://wordpress.org/support/topic/pro-stopped-working-3/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/pro-stopped-working-3/#post-18739480)
 * Perhaps try the method I added in [https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18739474](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18739474)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] Gateway TIme Out](https://wordpress.org/support/topic/gateway-time-out-5/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/gateway-time-out-5/#post-18739479)
 * Rather than edit the core plugin files, try this method I shared using a separate
   PHP function that blocks the API call to the dead website. [https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18739474](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18739474)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] 504 Gateway Time-out](https://wordpress.org/support/topic/504-gateway-time-out-36/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/504-gateway-time-out-36/#post-18739478)
 * I’m sure Johan’s method works fine too but if you don’t want to edit the plugin
   files, running the external php function I shared on [https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18739474](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18739474)
   fixes this issue too. IMO, it’s easier to add it this way and not touch the plugin
   files.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[If Menu - Visibility control for Menus] If Menu blocks Appearance > Menus](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/)
 *  [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/if-menu-blocks-appearance-menus/#post-18739474)
 * Just came here to submit a similar bug, for me it does load but it takes over
   a minute. I installed the Query Monitor plugin to see what’s going on and it 
   seems to make an http API call to
 * [https://layered.market/get-plan?site=https%3A%2F%2Fannapflourishfitness.com&for=if-menu&_nonce=692eee0d6ec75&licenseKey=](https://layered.market/get-plan?site=https%3A%2F%2Fannapflourishfitness.com&for=if-menu&_nonce=692eee0d6ec75&licenseKey=)
   
   I believe this is what is making the page hang.
 * Testing this URL and the homepage [https://layered.market/](https://layered.market/)
   leads to a Cloudflare Gateway time-out error, so I’m guessing this plugin has
   been abandoned, along with the domain too.
 * As this plugin hasn’t been updated for 12 months and several other people have
   reported similar issues with 0 replies over the past couple of weeks.
 * Long term, we may need to replace this plugin.
 * Short term, I have a PHP fix.
 * Add this snippet and set it to only run in the dashboard (as it’s not needed 
   on the front end)
 * I added this and now the appearance > menus page loads instantly again.
 *     ```wp-block-code
       add_filter('pre_http_request', function ($pre, $args, $url) {    // If the request is going to layered.market, block it    if (strpos($url, 'layered.market') !== false) {        // Returning a WP_Error makes WordPress treat the request as failed        return new WP_Error(            'layered_market_blocked',            'Blocked slow request to layered.market'        );    }    // For all other URLs, do nothing    return $pre;}, 10, 3);
       ```
   
 * This snippet basically blocks the plugin from attempting the API call.
 * I hope that helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] Conditional Field Groups – Feature Request](https://wordpress.org/support/topic/conditional-field-groups-feature-request/)
 *  Thread Starter [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [4 months, 1 week ago](https://wordpress.org/support/topic/conditional-field-groups-feature-request/#post-18738813)
 * Thank you, that got me 90% of the way. I did have to change to post_parent as
   it’s a page. 
   Here’s my final working code with the changed meta box div ID too.
 *     ```wp-block-code
       /** * Plugin Name: Hide Fields if not Industries */add_action(    'admin_head',    function () {        // Only run on post.php edit screen.        if (            ! isset( $_GET['post'], $_GET['action'] )            || 'edit' !== $_GET['action']        ) {            return;        }        $post_id = (int) $_GET['post'];        $post    = get_post( $post_id );        if ( ! $post || 'page' !== $post->post_type ) {            return;        }        // Get parent post.        if ( ! $post->post_parent ) {            // No parent, so parent is not "industries" -> hide meta box.            $parent_slug = null;        } else {            $parent      = get_post( $post->post_parent );            $parent_slug = $parent ? $parent->post_name : null;        }        // Hide meta box if parent slug is NOT "industries".        if ( 'industries' === $parent_slug ) {            // Parent is "industries", so do nothing, leave visible.            return;        }        ?><style>    /* Hide the Pods meta box when parent is not "industries" Change #pods-meta-case-studies to whatever your div ID is for your meta box. You can find this by inspecting the edit page screen */    #pods-meta-case-studies {        display: none;    }</style>        <?php    });
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] Limit Media Library for File Field to Mime Type](https://wordpress.org/support/topic/limit-media-library-for-file-field-to-mime-type/)
 *  Thread Starter [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/limit-media-library-for-file-field-to-mime-type/#post-18706129)
 * You can test this on any WordPress website with ACF.
    - Use a file field
    - Limit it to mp4
    - Use the field on a post and you will see images.
    - You can’t add the image to the field which begs the question, why are you 
      even seeing them?
    - It should limit the filter to only show/list mp4 files and exclude everything
      else.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] Sorting Icons](https://wordpress.org/support/topic/sorting-icons/)
 *  Thread Starter [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/sorting-icons/#post-18702593)
 * I’m an idiot, it was the Post Order plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pods - Custom Content Types and Fields] Show Taxonomy column on Post Types Issue](https://wordpress.org/support/topic/show-taxonomy-column-on-post-types-issue/)
 *  Thread Starter [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/show-taxonomy-column-on-post-types-issue/#post-18701198)
 * I’m an idiot, I had the Admin columns plugin overtaking this.
 * Making as resolved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Pressidium Cookie Consent] How to change text?](https://wordpress.org/support/topic/how-to-change-text-10/)
 *  Thread Starter [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [5 months, 2 weeks ago](https://wordpress.org/support/topic/how-to-change-text-10/#post-18697215)
 * Ah, perfect, I hadn’t thought to check that one. That solved it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[New User Approve] Plugin Issues](https://wordpress.org/support/topic/plugin-issues-52/)
 *  Thread Starter [one3rdnerd](https://wordpress.org/support/users/one3rdnerd/)
 * (@one3rdnerd)
 * [7 months ago](https://wordpress.org/support/topic/plugin-issues-52/#post-18638866)
 * Ah, after you replied, I deleted the plugin and reinstalled and then realised
   there was a PHP snippet
 *     ```wp-block-code
       function custom_user_approval($event) {	 $transaction = $event->get_data();    // Get the user object    $user = new WP_User($transaction->user_id);    // Check user roles    if (in_array('local_authority', $user->roles)) {        // If user role is Local Authority, set status to pending        //update_user_meta($transaction->user_id, 'pw_user_status', 'pending');    } elseif (in_array('landowner', $user->roles) || in_array('developer', $user->roles)) {        // If user role is Landowner or Developer, set status to approved        update_user_meta($transaction->user_id, 'pw_user_status', 'approved');        do_action( 'new_user_approve_user_approved', $user );    }}// Hook into the 'user_register' actionadd_action('mepr-event-transaction-completed', 'custom_user_approval');
       ```
   
 * This was causing it for the end users signing up through my form which gave them
   the user status of “landowner”. 
   I will test the email sending again but it might
   be clearer if this just shows the email address from the general settings rather
   than [example@example.com](https://wordpress.org/support/users/one3rdnerd/replies/example@example.com?output_format=md)

Viewing 15 replies - 1 through 15 (of 360 total)

1 [2](https://wordpress.org/support/users/one3rdnerd/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/one3rdnerd/replies/page/3/?output_format=md)…
[22](https://wordpress.org/support/users/one3rdnerd/replies/page/22/?output_format=md)
[23](https://wordpress.org/support/users/one3rdnerd/replies/page/23/?output_format=md)
[24](https://wordpress.org/support/users/one3rdnerd/replies/page/24/?output_format=md)
[→](https://wordpress.org/support/users/one3rdnerd/replies/page/2/?output_format=md)