PHP, How to detect course page

Home Forums Legacy Support Support queries How-to & Troubleshooting PHP, How to detect course page

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #129695
    varomix
    Spectator
    Hi I need to know if the student is on a course page, because I want to run a plugin ONLY in course pages, is there a way to handle that in php? like is_course_page, is there a specific attribute or something I can use for that? thanks
    #129712
    H.K. Latiyan
    Participant
    Hi, A course is a custom post type in wplms, so you can use wordpress is_singular() function to check the course page or you can use the global $post and check the post type.
    #129809
    varomix
    Spectator
    cool thank you
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘PHP, How to detect course page’ is closed to new replies.