Last active
May 13, 2020 21:45
-
-
Save mloza/2ef1385704378a731b99b82f22b338e4 to your computer and use it in GitHub Desktop.
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