2

does anyone knows how many functions Wordpress has? I mean, are the more used functions around 100 or more than 200?

ps: I am trying to build a catalog of the API and wrap it behind a visual programming language; so I'd love to know how much work I am facing ;-)

thanks, guenter

5

From quick run of phploc as of current stable version (4.0) there are 2662 functions in WordPress core.

Structure
  Namespaces                                         0
  Interfaces                                         1
  Traits                                             0
  Classes                                          241
    Abstract Classes                                 4 (1.66%)
    Concrete Classes                               237 (98.34%)
  Methods                                         2842
    Scope
      Non-Static Methods                          2552 (89.80%)
      Static Methods                               290 (10.20%)
    Visibility
      Public Methods                              2571 (90.46%)
      Non-Public Methods                           271 (9.54%)
  Functions                                       2662
    Named Functions                               2662 (100.00%)
    Anonymous Functions                              0 (0.00%)
  Constants                                        557
    Global Constants                               541 (97.13%)
    Class Constants                                 16 (2.87%)
  • I got 2533. Probably difference is in wp-content folder I excluded. – gmazzap Oct 19 '14 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.