Support » Plugin: Force Login » Bypass Force Login code question

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    Your syntax is wrong, specifically the conditional statement. Change it to the following:

    if ( is_page( 'calendar' ) ) {
    

    Thank you for your quick reply, much appreciated.

    I made your edit but not in the Theme’s functions.php instead in the plugin’s WP-Force-Login.php. If this is not best practice, please advise.

    It appears to be working.

    Plugin Author Kevin Vess

    (@kevinvess)

    Hi, I’m glad you got it working!

    However, editing plugin files is not best practice. If you update the plugin, all of your custom changes will be lost.

    It’s better to apply custom changes through hooks and filters via your theme’s functions.php file or a custom plugin of your own.

    Be sure to rate and review my plugin to let others know how you like it.

    Thanks for using Force Login!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.