Slide 1

Slide 1 text

PUBLISHING A PLUGIN on wordpress.org Mark Wilkinson | markwilkinson.me | @wpmark highrise.digital

Slide 2

Slide 2 text

Mark Wilkinson Developer & Co-founder at Highrise Digital https://highrise.digital https://markwilkinson.me Twitter: @wpmark

Slide 3

Slide 3 text

WHY? PREPARATION SUBMISSION AFTERCARE

Slide 4

Slide 4 text

WHY? PREPARATION SUBMISSION AFTERCARE

Slide 5

Slide 5 text

WHY? PREPARATION SUBMISSION AFTERCARE

Slide 6

Slide 6 text

WHY? PREPARATION SUBMISSION AFTERCARE

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

ASSUMPTIONS

Slide 9

Slide 9 text

WHY?

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

DEVELOPER DEVELOPMENT

Slide 15

Slide 15 text

UPDATES

Slide 16

Slide 16 text

“You’re brave!”

Slide 17

Slide 17 text

DEVELOPMENT WHERE WILL IT HAPPEN?

Slide 18

Slide 18 text

Coding Standards https://make.wordpress.org/core/handbook/best-practices/coding-standards/ https://upload.wikimedia.org/wikipedia/commons/1/1a/Code.jpg

Slide 19

Slide 19 text

EXTENSIBILITY do_action() / apply_filters() wordpress.tv/2014/08/29/mark-wilkinson-easy-extensible-plugins/

Slide 20

Slide 20 text

SANITIZE & VALIDATE wp_kses( $string, $allowed_html, $allowed_protocols ) esc_html( $text ) / esc_url( $url ) / esc_attr( $attr ) $wpdb->insert( $table, (array) $data )

Slide 21

Slide 21 text

EXAMPLE

Slide 22

Slide 22 text

EXAMPLE $title = sanitize_text_field( $_POST[ ‘title’ ] ); update_post_meta( $post_id, ‘my_title’, $title );

Slide 23

Slide 23 text

EXAMPLE $title = sanitize_text_field( $_POST[ ‘title’ ] ); update_post_meta( $post_id, ‘my_title’, $title ); $title = get_post_meta( $post->ID, ‘my_title’, true );

Slide 24

Slide 24 text

define( 'WP_DEBUG', true );

Slide 25

Slide 25 text

https://www.flickr.com/photos/lendingmemo/11702409583

Slide 26

Slide 26 text

assets/icon-128x128.(png|jpg)

Slide 27

Slide 27 text

assets/icon-128x128.(png|jpg) assets/banner-772x250.(jpg|png)

Slide 28

Slide 28 text

assets/banner-772x250.(jpg|png) assets/icon-128x128.(png|jpg) assets/screenshot-1.(jpg|png)

Slide 29

Slide 29 text

readme.txt https://wordpress.org/plugins/about/readme.txt https://wordpress.org/plugins/about/validator/ Contributors: wpmarkuk, highrisedigital Donate link: http://markwilkinson.me/saythanks/ Tags: users, user switching Requires at least: 3.1 Tested up to: 4.4 Stable tag: 1.0.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

SUBMIT TO .ORG

Slide 32

Slide 32 text

https://wordpress.org/plugins/add/

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

SVN

Slide 35

Slide 35 text

svn co https:// plugins.svn.wordpress.org/your- plugin-name

Slide 36

Slide 36 text

assets/ branches/ tags/ trunk/

Slide 37

Slide 37 text

svn add trunk/*

Slide 38

Slide 38 text

svn ci -m ’Commit message here'

Slide 39

Slide 39 text

SUPPORT

Slide 40

Slide 40 text

1.  Must be compatible with the GNU General Public License v2, or later 2.  Must not do anything illegal, or be morally offensive 3.  You have to actually use the Subversion repository we give you 4.  The plugin must not embed external links on the public site (like a "powered by" link) without explicitly asking the user's permission. 5.  If you don’t specify a compatible license, what you check in is considered GPLv2 or later. 6.  We also have a large list of detailed guidelines, but mostly they say how not to be a spammer. FOLLOW THE RULES

Slide 41

Slide 41 text

1.  Must be compatible with the GNU General Public License v2, or later 2.  Must not do anything illegal, or be morally offensive 3.  You have to actually use the Subversion repository we give you 4.  The plugin must not embed external links on the public site (like a "powered by" link) without explicitly asking the user's permission. 5.  If you don’t specify a compatible license, what you check in is considered GPLv2 or later. 6.  We also have a large list of detailed guidelines, but mostly they say how not to be a spammer. FOLLOW THE RULES

Slide 42

Slide 42 text

1.  Must be compatible with the GNU General Public License v2, or later 2.  Must not do anything illegal, or be morally offensive 3.  You have to actually use the Subversion repository we give you 4.  The plugin must not embed external links on the public site (like a "powered by" link) without explicitly asking the user's permission. 5.  If you don’t specify a compatible license, what you check in is considered GPLv2 or later. 6.  We also have a large list of detailed guidelines, but mostly they say how not to be a spammer. FOLLOW THE RULES

Slide 43

Slide 43 text

1.  Must be compatible with the GNU General Public License v2, or later 2.  Must not do anything illegal, or be morally offensive 3.  You have to actually use the Subversion repository we give you 4.  The plugin must not embed external links on the public site (like a "powered by" link) without explicitly asking the user's permission. 5.  If you don’t specify a compatible license, what you check in is considered GPLv2 or later. 6.  We also have a large list of detailed guidelines, but mostly they say how not to be a spammer. FOLLOW THE RULES

Slide 44

Slide 44 text

1.  Must be compatible with the GNU General Public License v2, or later 2.  Must not do anything illegal, or be morally offensive 3.  You have to actually use the Subversion repository we give you 4.  The plugin must not embed external links on the public site (like a "powered by" link) without explicitly asking the user's permission. 5.  If you don’t specify a compatible license, what you check in is considered GPLv2 or later. 6.  We also have a large list of detailed guidelines, but mostly they say how not to be a spammer. FOLLOW THE RULES

Slide 45

Slide 45 text

1.  Must be compatible with the GNU General Public License v2, or later 2.  Must not do anything illegal, or be morally offensive 3.  You have to actually use the Subversion repository we give you 4.  The plugin must not embed external links on the public site (like a "powered by" link) without explicitly asking the user's permission. 5.  If you don’t specify a compatible license, what you check in is considered GPLv2 or later. 6.  We also have a large list of detailed guidelines, but mostly they say how not to be a spammer. FOLLOW THE RULES

Slide 46

Slide 46 text

Twitter: @wpmark Web: https://highrise.digital Email: [email protected] Developer & Co-founder at Highrise Digital Thank you Questions?