[wp-hackers] File Priority in wp_head and Editing Plugin Files

Matt Martz matt at sivel.net
Tue Oct 14 11:00:24 GMT 2008

On Mon, Oct 13, 2008 at 9:31 PM, Chris Poteet <cpoteet at siolon.com> wrote:
> I have a plugin that has a stylesheet, and I would like to ensure it's
> the last thing loaded in wp_head to leverage the cascade. How can this
> be done?

Use a high priority with add_action to insure it loads later.  10 is
the default so try something like 60.

> Also, we used to be able to edit files other than just PHP.  I'd like
> to offer editing of the CSS file in the admin area but I get a message
> telling me it can't be edited.  Any reason why a CSS file wouldn't
> allowed to be editable?

Most likely it is because of the file system permissions on the CSS
files do not give the web server access to write to them.  The files
need to be writable by the web server user or web server group.  Have
a look at http://codex.wordpress.org/Changing_File_Permissions for
information on WordPress file permissions.

Matt Martz
matt at sivel.net

More information about the wp-hackers mailing list