• Resolved coriolis_too

    (@coriolis_too)


    With the WP-Foro plugin, the wp-foro registration page displays the wp-member fields, how to prevent this?

    Is it possible to deactivate wp-members only for a page or URL (without adding a plugin)

    Thanks,

    Stephan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The plugin uses WP’s register_form hook to add fields – both to itself, and the native WP registration form. Any form that uses that hook would have the WP-Members fields added to it.

    You can use the following at any action later than after_setup_theme to unload it (or possibly wpmem_after_init ):

    remove_action( 'register_form', 'wpmem_wp_register_form' );

    I would try it with the wpmem_after_init first. As an example:

    add_action( 'wpmem_after_init', function() {
    remove_action( 'register_form', 'wpmem_wp_register_form' );
    });

    Thread Starter coriolis_too

    (@coriolis_too)

    Thanks,

    Works flawlessly. For posterity, I added

    remove_action( 'register_form', 'wpmem_wp_register_form' );

    directly at the top of the “register.php” file of my custom 2022 theme file

    /wp-content/themes/mytheme/wpforo/register.php

    Thanks a lot,

    Stephan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-Foro incompatibility’ is closed to new replies.