• When I add the following code in my themes functions.php, I will no longer access wp-admin. White page only. Though I removed the code from functions.php continues white page. I have to manually delete the folder e-mail users via FTP so wp-admin back working again.

    What could be wrong?

    I have tried this

    add_action( ‘mailusers_user_custom_meta_filter’, ‘first_name_alex’, 5 );

    function first_name_alex()
    {
    mailusers_register_user_custom_meta_filter(‘First Name: Alex’, ‘first_name’, ‘Alex’);
    }

    AND ALSO THIS

    add_action( ‘mailusers_group_custom_meta_filter’, ‘send_to_police_department’, 5 );

    function send_to_police_department()
    {
    mailusers_register_group_custom_meta_filter(‘Police Department’, ‘department’, ‘police’);
    }

    https://ww.wp.xz.cn/plugins/email-users/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    I would suggest putting the code in a separate PHP file and upload it as a plugin instead of trying to do it as part of your theme. I have never tested it this way, all of the testing as done using a plugin.

    You can download the actual plugin file I use for testing from this post on my site.

    It is important to note that any of the rules which contain “LIKE” will not work due to how WordPress handles SQL wildcards. I submitted a patch to fix that problem a while ago but it was never incorporated so the issue remains.

    Thread Starter niklas_

    (@niklas_)

    Thanks, I will try that.

    Ps. I have notice when I install email-users tha label “Email Users” also is under “Settings” in wp-admin, with the link /wp-admin/options-general.php?page=mailusers-options-page

    When click on that button also wp-admin breaks (white page) and I have to deactivate email-users to be able to access wp-admin again.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    That sounds like a plugin conflict. The Email Users menu under settings is where all of the settings for Email Users reside (and there are a lot of them – 17 or 18 I think).

    Disable all of your other plugins and see if your still get the white screen when you enable Email Users. I would be surprised if you do.

    Thread Starter niklas_

    (@niklas_)

    It was my plugin “Hide My WP” that cause the conflict with Email Users.

    Do you now if there is any way to make them work togheter?

    Thanks for quick replay by the way.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Nope. My guess is “Hide my WP” is doing something it shouldn’t. To the best of my knowledge, Email Users adheres to the WordPress API and plugin rules for integrating with WordPress. If there is a bug in Email Users I am happy to fix it but I do not have the bandwidth to chase down conflicts with other plugins.

    Do you have access to your server’s Error Log? My guess is there is some sort of PHP error message in it which would provide a clue as to what is happening or enabling WordPress debug (there are a couple of debug plugins) might also help.

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

The topic ‘Custom Meta Filter’ is closed to new replies.