Kod źródłowy do wpisu o tworzeniu wtyczek do wordpressa znajdującego się pod adresem: https://wpblog.pl/tworzenie-wlasnej-wtyczki-do-wordpressa/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Sample Extension | |
* Plugin URI: http://wpblog.pl | |
* Description: Sample Extension to show wordpress plugins functionality | |
* Version: 1.0 | |
* Author: WP Blog | |
* Author URI: http://wpblog.pl | |
*/ | |
add_action('wp_footer', function() { | |
echo "Hello from Sample Plugin!"; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('ABSPATH') or die('Execution not allowed!'); | |
// Kod wtyczki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Sample Extension | |
* Plugin URI: http://wpblog.pl | |
* Description: Sample Extension to show wordpress plugins functionality | |
* Version: 1.0 | |
* Author: WP Blog | |
* Author URI: http://wpblog.pl | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Sample Extension | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment