Skip to content

Commit

Permalink
changes in static.php description
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Feb 18, 2015
1 parent 14bfadc commit a7b924b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions extensions/directory-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ Let's take a closer look at each directory and file, and understand how it works
* ``static.php`` - Enqueue extension scripts and styles.
It is included automatically on the ``wp_enqueue_scripts`` and ``admin_enqueue_scripts`` actions,
so you can enqueue both admin and frontend scripts and styles from it, but you will have to use the ``is_admin()`` function.
If your extension has a class, you can enqueue there scripts and styles.
Users can overwrite this file (it will not be included) by creating
This file can be overwritten from theme by creating
``{theme-name}/framework-customizations/extension/{extension-name}/static.php``.

* ``posts.php`` - Register theme post types and taxonomies in this file. It is included automatically on the ``init`` action.
Expand Down

0 comments on commit a7b924b

Please sign in to comment.