Title: Source code function
Last modified: August 7, 2019

---

# Source code function

 *  Resolved [marcie73](https://wordpress.org/support/users/marcie73/)
 * (@marcie73)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/source-code-function/)
 * Hello, I need to use it in a template file, not with a shortcode. There is any
   solution or workaround? Thank you very much! 🙂

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

 *  Thread Starter [marcie73](https://wordpress.org/support/users/marcie73/)
 * (@marcie73)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/source-code-function/#post-11808733)
 * ok i found something in the support threads
 * if ( true === passster\PS_Conditional::is_password_valid( ‘123’ ) ) {
    the_content();}
 * Is there a way to show content without the page being refreshed?
    Thank you!
 *  [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/source-code-function/#post-11840883)
 * Hey [@marcie73](https://wordpress.org/support/users/marcie73/),
 * great you have found the conditional function.
 * Currently there is no way to unlock the areas without reloading the page.
    This
   would require an ajax call to the installation and results in several problems
   with other plugins (especially form plugins), that’s why it’s not implemented
   yet.
 * It’s part of the roadmap of future versions of Passster but I need to find a 
   way to implement it in a reliable way to not increase the number of problems 
   in the usage of Passster 🙂
 * Best regards,
    Patrick
 *  Thread Starter [marcie73](https://wordpress.org/support/users/marcie73/)
 * (@marcie73)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/source-code-function/#post-11860238)
 * Thank you! 🙂

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

The topic ‘Source code function’ is closed to new replies.

 * ![](https://ps.w.org/content-protector/assets/icon-256x256.png?rev=2206760)
 * [Passster - Password Protect Pages and Content](https://wordpress.org/plugins/content-protector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-protector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-protector/)
 * [Active Topics](https://wordpress.org/support/plugin/content-protector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-protector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-protector/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [marcie73](https://wordpress.org/support/users/marcie73/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/source-code-function/#post-11860238)
 * Status: resolved