SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why we use of_get_option() function in Wordpress?

    Hi,

    I was learning Wordpress theme development. I saw this function used at many places. I tried to do some research from Wordpress site but couldn't get clear idea. Can somebody throw more light on it?

    thx
    Pras

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,069
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Seems to be part of the options framework plugin - http://wptheming.com/options-framework-plugin/
    Be sure to congratulate Patche on earning July's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  3. #3
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cpradio View Post
    Seems to be part of the options framework plugin - http://wptheming.com/options-framework-plugin/
    yes. I already saw this video but don't understand this plugin is not installed with the theme I am learning from then how it is calling it's functions.

  4. #4
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,069
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    No idea, it could be using the Options Framework Theme Kit?
    http://wptheming.com/options-framework-theme/
    Be sure to congratulate Patche on earning July's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  5. #5
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,069
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    In fact, that looks to be what they did. They used the options framework theme kit to build their theme, which includes the of_get_option() function. Also looks like it is providing a mechanism for reading theme configuration items, but that is purely my understanding of it (as I've never used it myself).
    Be sure to congratulate Patche on earning July's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •