Skip to content

Instantly share code, notes, and snippets.

@mloza

mloza/action.php

Last active May 13, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.