• Resolved jalgaonkar.deovrat

    (@jalgaonkardeovrat)


    I am recently started using wordpress and realized that its the great cms. Using wordpress we can make any kind of website even if its primarily build for bloging sites because of its simplicity, flexibility and lots of built-in functions.

    But I feel that there is no uniformity in naming style of wordpress functions. ie. Some start with ‘wp_’ to indicate that its wordpress function and some don’t like ‘get_posts’.

    I don’t find it logically correct. It may be because of lack of knowledge of wordpress.

    But uniformity in naming style helps us to guess the functions without searching the function in codex. Also it makes a standard and logically correct.

    Please correct me if I am going wrong.

    Thanks for making such a great cms.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Some start with ‘wp_’ to indicate that its wordpress function and some don’t like ‘get_posts’.

    You’re not wrong. 🙂 Work is ongoing to standardise function names and all new functions have the wp_ prefix. The older, non-standard, functions will be slowly phased out but this will take some time as there is a commitment to retain some degree of backwards functionality.

    Thread Starter jalgaonkar.deovrat

    (@jalgaonkardeovrat)

    Thanks For Taking Care Of My Post And Giving The Feedback…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Functions Naming Style’ is closed to new replies.