Weitere ähnliche Inhalte Ähnlich wie So You Want to Build and Release a Plugin? WordCamp Lancaster 2014 (20) Kürzlich hochgeladen (20) So You Want to Build and Release a Plugin? WordCamp Lancaster 20141. SO YOU WANT TO
BUILD AND RELEASE
A PLUGIN…
Ryan Duff
WordCamp Lancaster 2014
14. EXAMPLE
do_action( 'wclanc_books_before' );
echo '<div class="wclanc_books">';
while( $books->have_posts() ) : $books->the_post()
echo '<div class="wclanc_book">';
do_action( 'wclanc_before_book_title', get_the_ID() );
echo '<h3 class="wclanc_book_title">' . get_the_title() . '</h3>';
do_action( 'wclanc_after_book_title', get_the_ID() );
echo '</div>';
endwhile;
echo '</div>';
do_action( 'wclanc_books_after' );
16. EXAMPLE
/*
* Plugin Name: i18n Test
* Author: Ryan Duff
* Text Domain: wclanc-i18n
*/
$text = __( ‘This is a test', ‘wclanc-i18n' );
_e( ‘This test will echo', ‘wclanc-i18n' );
https://codex.wordpress.org/I18n_for_WordPress_Developers
20. COMMON LICENSES
•
GPL v2/v3
•
MIT (X11)
•
Apache License v2
•
WTFPL v2
1) http://wordpress.org/plugins/about/
2) http://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses