Skip to content

Instantly share code, notes, and snippets.

@mloza
Last active May 13, 2020 21:45
Show Gist options
  • Save mloza/2ef1385704378a731b99b82f22b338e4 to your computer and use it in GitHub Desktop.
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/
<?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!";
});
<?php
defined('ABSPATH') or die('Execution not allowed!');
// Kod wtyczki
<?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
*/
<?php
/*
* Plugin Name: Sample Extension
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment