WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Functions Naming Style (3 posts)

  1. jalgaonkar.deovrat
    Member
    Posted 1 year ago #

    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.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  3. jalgaonkar.deovrat
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic