Читать книгу Professional WordPress Plugin Development - Brad Williams - Страница 46

Plugin Paths

Оглавление

There are two types of paths that you might be concerned with when building WordPress plugins. The first is the local path to files on the server. The second is URL paths, which may be necessary for loading JavaScript files, CSS stylesheets, or other assets. You may also need to link to a specific URL within the WordPress installation itself.

Because WordPress provides the ability for users to move their wp‐content folder (where plugins are located) to any location on the server, it's important to use the standard WordPress functions for determining the correct path.

Professional WordPress Plugin Development

Подняться наверх