Title: plugin functions don&#8217;t work in theme
Last modified: June 12, 2021

---

# plugin functions don’t work in theme

 *  [Sadegh Hosseini](https://wordpress.org/support/users/mr-seven/)
 * (@mr-seven)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/plugin-functions-dont-work-in-theme/)
 * Hi,
    non of the plugin functions works in my themes function. I’ve checked all
   of the plugin functions in this address: [https://dfactory.eu/docs/post-views-counter/developers-api/](https://dfactory.eu/docs/post-views-counter/developers-api/)
   but non of them works. for example:
 *     ```
       if (function_exists('pvc_get_post_views'))
           echo( "pvc defined" );
       else
           echo( "pvc not defined" );
       ```
   
 * it always shows “Pvc not defined”
    Please tell me how can I use plugin functions?

The topic ‘plugin functions don’t work in theme’ is closed to new replies.

 * ![](https://ps.w.org/post-views-counter/assets/icon-256x256.png?rev=2973820)
 * [Post Views Counter](https://wordpress.org/plugins/post-views-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-views-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-views-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/post-views-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-views-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-views-counter/reviews/)

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)

 * 0 replies
 * 1 participant
 * Last reply from: [Sadegh Hosseini](https://wordpress.org/support/users/mr-seven/)
 * Last activity: [4 years, 12 months ago](https://wordpress.org/support/topic/plugin-functions-dont-work-in-theme/)
 * Status: not resolved