Skip to content

Commit 4975318

Browse files
committed
Update readme.
1 parent e83722c commit 4975318

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ To install:
1313

1414
With plug-ins that have premium extensions, such as WP Tweets PRO for WP to Twitter, some extensions only work when the premium add-on is also installed.
1515

16-
These aren't full-scale plug-ins; these are examples for how to use the filters and actions in my plug-ins to extend or customize their functionality. Most examples require editing the code to change how they operate, and don't add any admin options.
16+
# What makes it a plugin?
17+
18+
The header block is a section of comments that describe the plugin, and are used to identify that this is a plugin. A header block will look something like this:
19+
20+
```/*
21+
Plugin Name: Name of my Custom Plugin
22+
Plugin URI: http://www.joedolson.com
23+
Description: Describe what this plug-in does
24+
Author: Joe Dolson
25+
Version: 1.0.0
26+
Author URI: http://www.joedolson.com/
27+
*/```
28+
29+
Any PHP file in the `/wp-content/` directory that has this comment will be recognized as a plug-in.
30+
31+
The plug-ins in this repository are simple examples. They don't have options or settings, they are examples for manipulating the filters and actions in my plugins to customize their functionality. In most cases, you'll need to edit the code to change how they operate.
1732
1833
Thanks!

my-calendar/my-calendar-custom-fields.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,3 @@ function my_event_email_tag( $details, $event ) {
9797

9898
return $details;
9999
}
100-

wp-to-twitter/replace-space-character-in-tags.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* Author URI: http://www.joedolson.com
99
*/
1010

11-
1211
add_filter( 'option_jd_replace_character', 'replace_spaces' );
1312
/*
1413
* Replace default character (usually blank) with an underscore.

0 commit comments

Comments
 (0)