Articles of plugin development

Finding the paragraphs in content

I am trying to create two functions, one that catches the first paragraph of some content, and one that catches the rest, but I have hit a bit of a conundrum. I have this in my single.php: <div class=’the_content’> <?php the_content(); ?> </div> which produces: <div class=”the_content”> <p>The content …..</p> <p>The content …..</p> <p>The content […]

What's the difference between hooks, filters and actions?

This question already has an answer here: Difference Between Filter and Action Hooks? 3 answers

Adding plugin settings link upon activation

Here I want to have upon activation of my wordpress plugins activation Before Activation Activate | Edit | Delete After Activation Settings | Edit | Delete How can this be done in code to add this Menu

Force plugin to fail activation

I’m writing a plugin that will be using custom fields added by a theme. Because of this, it would be ideal if my plugin not be able to activate should these fields not exist. How do I go about displaying an error and forcing the activation to fail?

Dynamically Override Fancy Title

I’m trying to override Fancy Title created using The7 Theme. The7 Titles are generate from this function: function presscore_get_page_title() { $title = ”; if ( is_page() || is_single() ) { $title = get_the_title(); } else if ( is_search() ) { $title = sprintf( __( ‘Search Results for: %s’, ‘the7mk2’ ), ‘<span>’ . get_search_query() . ‘</span>’ […]

Is Dreamweaver CS5 a serious choice for theme/plugin development?

I’ve heard that Dreamweaver has been improved significantly in latest versions. Does anyone have experience in developing a theme or plugin using Dreamweaver? What are the pros/cons? Thanks in advance

Mixing Regular Javascript With jQuery in a Plugin

Sorry for a simple question. I’m learning about plugins. I’ve got some javascript that I want to put in a jQuery file in my plugin. (I’ve got jQuery and the scripts enqueued, and working fine). Is it okay if I just prepend the javasvript to the jQuery? So, the file would look like this: //regular […]

Is there a way to alter the order in which the plugins appear in the page?

I currently have the following plugins activated in my wordpress installation: row 1: Outbrain row 2: Subscribe via feedburner RSS/email row 3: Topsy tweet widget, FB like widget, WP-Email a friend widget I want to change the order in which they appear. I want widgets in row 3 to appear first, outbrain widget to appear […]

How to put placeholder text in the main post input area?

I’m making a course plugin for a university in England. I’m looking to put some default placeholder text in the main post content area, on the admin side. Its the rich text editor I want it to go behind. I might just be typing the wrong words, but can’t find it here… preferably a non […]

Prevent Plugin from loading on 'wp-admin / wp-login'

I am creating plugin that redirects users UNLESS they are visiting from a specific IP. Originally I had this code sat in index.php so it would never load on wp-admin, wp-login pages. However since I have moved this code to a plugin it is. Does anyone know how I can stop the plugin from running […]