[wp-trac] [WordPress Trac] #11660: Custom code for any theme
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 29 14:14:02 UTC 2009
#11660: Custom code for any theme
----------------------------+-----------------------------------------------
Reporter: daniel.accorsi | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Themes | Version: 2.9
Severity: normal | Keywords: theme, code, custom
----------------------------+-----------------------------------------------
Comment(by nacin):
Replying to [ticket:11660 daniel.accorsi]:
> Create a new enhancement to developing new PHP/HTML codes independent of
chosen theme. This can be used in cases that users and developers are
changing the archives of theme to implement new functions, like a google
code, etc. When changing the theme, these code will not be replaced by new
chosen theme.
I am pretty sure you just defined a plugin here.
> This can be applied by creating a new area in WPs administration and
associating the custom code to the desired position in the blog (top,
bottom, sidebar etc).
There is a plugins area in wp-admin. Here is your custom code association
example:
{{{
function send_this_to_the_header() {
echo "<!-- this is a test -->";
}
do_action( 'wp_head', 'send_this_to_the_header' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11660#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list