Discussion:
Hacking the Wordpress Core
Tony Thomas
2013-08-29 18:37:51 UTC
Permalink
Hi guys,

I was trying to edit the Insert Media page in Wordpress in order to add a
button near to the search bar. I could do the same very easily using
firebug and editing the page source live easily. But when trying to
implement the same on the core files, I found out that there weren't any
file which contained the same set of html codes as the codes were generated
real time as the IRC told. If so, how is it possible to add my HTML element
to the core?

Tony Thomas <http://tttwrites.wordpress.com>
***@Amrita <http://foss.amrita.ac.in>
*
"if there is a wifi,there is a way"*
Roger Chen
2013-08-29 18:52:15 UTC
Permalink
I would recommend using JavaScript to insert your element. You should avoid
editing core files whenever possible.

Roger
Post by Tony Thomas
Hi guys,
I was trying to edit the Insert Media page in Wordpress in order to add a
button near to the search bar. I could do the same very easily using
firebug and editing the page source live easily. But when trying to
implement the same on the core files, I found out that there weren't any
file which contained the same set of html codes as the codes were generated
real time as the IRC told. If so, how is it possible to add my HTML element
to the core?
Tony Thomas <http://tttwrites.wordpress.com>
*
"if there is a wifi,there is a way"*
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
J.D. Grimes
2013-08-29 18:55:25 UTC
Permalink
Roger is right, you should try not edit core directly. See if there are any actions or filters that you can hook into first, and if that isn't possible, use JavaScript.
Post by Roger Chen
I would recommend using JavaScript to insert your element. You should avoid
editing core files whenever possible.
Roger
Post by Tony Thomas
Hi guys,
I was trying to edit the Insert Media page in Wordpress in order to add a
button near to the search bar. I could do the same very easily using
firebug and editing the page source live easily. But when trying to
implement the same on the core files, I found out that there weren't any
file which contained the same set of html codes as the codes were generated
real time as the IRC told. If so, how is it possible to add my HTML element
to the core?
Tony Thomas <http://tttwrites.wordpress.com>
*
"if there is a wifi,there is a way"*
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Guus (IFS)
2013-08-30 04:41:28 UTC
Permalink
I like this :) : "if there is a wifi,there is a way"*

----- Original Message -----
From: "Tony Thomas" <***@gmail.com>
To: <wp-***@lists.automattic.com>
Sent: Friday, August 30, 2013 2:37 AM
Subject: [wp-hackers] Hacking the Wordpress Core
Post by Tony Thomas
Hi guys,
I was trying to edit the Insert Media page in Wordpress in order to add a
button near to the search bar. I could do the same very easily using
firebug and editing the page source live easily. But when trying to
implement the same on the core files, I found out that there weren't any
file which contained the same set of html codes as the codes were generated
real time as the IRC told. If so, how is it possible to add my HTML element
to the core?
Tony Thomas <http://tttwrites.wordpress.com>
*
"if there is a wifi,there is a way"*
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Continue reading on narkive:
Loading...