Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Views Template Files for Forms

Simple Membership Plugin › Forums › Simple Membership Plugin › Views Template Files for Forms

Tagged: template files

  • This topic has 8 replies, 4 voices, and was last updated 8 years ago by mbrsolution.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • August 23, 2016 at 11:00 pm #7963
    echo
    Participant

    How do we go about creating template files to override the views?

    I have a directory and file in my theme, simple-membership/edit.php however changes to this file don’t override the views/edit.php

    What am I missing?

    August 24, 2016 at 12:58 am #7964
    echo
    Participant

    In addition, I’m able to override the login.php file this way, but not the edit.php file.

    Is this template file not customizable in this way?

    August 24, 2016 at 2:53 am #7966
    mbrsolution
    Moderator

    Hi, currently the plugin does not cater for the customization of the template files you want to makes changes too as far as I know.

    August 24, 2016 at 4:15 pm #7968
    echo
    Participant

    Really? Not even with the filter hook, swpm_load_template_files ?

    August 24, 2016 at 4:42 pm #7969
    echo
    Participant

    In the class.swpm-utils-template.php it says,

    //Filter hook to allow overriding of the template file path
    $template_files = apply_filters( ‘swpm_load_template_files’, $template_files, $template_name);

    How do we use this hook?

    August 27, 2016 at 2:41 am #8021
    admin
    Keymaster

    At the moment only the login widget and the forgot password template can be overridden using that hook.

    I will make a change so the edit profile template file is also loaded using that same mechanism so it can be overridden using that hook. It will be available in the next release.

    August 27, 2016 at 5:40 pm #8033
    echo
    Participant

    That would be great!
    I think what would be nice is the ability to override any of the templates that push out forms.
    That way you can really customize the forms.
    I look forward to the next release!

    April 16, 2018 at 10:38 pm #14147
    d2dmike
    Participant

    Hi Support, has the ability to place the templates in the theme directory been fully implemented? I’m trying to make changes to the simple-membership/view/add.php by placing a copy in my theme theme-folder/simple-membership/add.php. This method seems to work for most of the other files but not add.php. Is there any way to make this possible? Thanks!

    April 17, 2018 at 2:53 am #14149
    mbrsolution
    Moderator

    Hi @d2dmike, can you start a new support thread. This thread is very old. In regards to the following comment by @admin above.

    I will make a change so the edit profile template file is also loaded using that same mechanism so it can be overridden using that hook. It will be available in the next release.

    That was added in version 3.3.2, see the note below.

    3.3.2

    You can now view a member’s last accessed date and time value by editing the member’s profile from the admin dashboard.
    The “Registration Successful” message can now be customized using the custom messages addon.
    The edit profile template file can now also be overridden using the swpm_load_template_files filter.
    Updated the Dutch language translation file.
    Added Estonian language translation file.
    Updated the Stripe payment gateway library to the latest version.

    Thank you

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy