How can I modify page content in the admin panel?

In wp-admin/edit.php at line 189 you can see that the title text is grabbed from the labels of the post type: <h2><?php echo esc_html( $post_type_object->labels->name ); ?> … </h2> When you register a new post type (register_post_type) you can also define its labels. The available labels are listed in the Codex.

Get path to themes CSS file inside of a Plugin

Get the absolute path: get_stylesheet_directory() Get the URI: get_stylesheet_directory_uri() Edit: Here’s a proof of concept plugin. It will just print out the stylesheet path and uri in the head tag of your site (front end). If these functions are not working in your plugin, there might be some other factor not explained in the OP. … Read more

Mask and Track Outbound Links

I would let something like Google Analytics do the tracking for you with something like event tracking. Look into Yoast’s Google Analytics plugin, it will let you do this fairly easily. Otherwise, something like Redirection would be good for creating redirects. And, of course, you can see how many times each was clicked. I’ve used … Read more

adding a button to the media uploader

When i needed to do something similar i used the admin_print_scripts-media-upload-popup hook to add my own js/Jquery code to insert a button and handled it’s click event with ajax. something like this: add_action(‘admin_print_scripts-media-upload-popup’,’add_my_media_button’); function add_my_media_button(){ ?> <script> jQuery(document).ready(function() { //loop over all attachments jQuery(“.savesend”).each(function(i,v){ if (jQuery(this).next().attr(‘id’) != “”){ //get attachment id var att_id = jQuery(this).next().attr(‘id’); … Read more