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 | |
/** | |
* @package TinyMCE_example_plugin | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: TinyMCE example plugin | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin | |
Author: Your Name |
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 | |
/** | |
* Build a custom query | |
* | |
* @param $query obj The WP_Query instance (passed by reference) | |
* | |
* @link https://codex.wordpress.org/Class_Reference/WP_Query | |
* @link https://codex.wordpress.org/Class_Reference/WP_Meta_Query | |
* @link https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts | |
*/ |
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
{ | |
"apiVersion": 2, | |
"name": "my-affiliate-plugin/my-affiliate-block", | |
"version": "0.1.0", | |
"title": "Affiliate Block", | |
"category": "design", | |
"icon": "money", | |
"keywords": [ "kinsta", "affiliate", "money" ], | |
"description": "An example block for Kinsta readers", | |
"supports": { |
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 | |
/** | |
* @package Kinsta_users | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Kinsta users | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin | |
Author: Carlo Daniele |
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 | |
/** | |
* Replace default login logo with custom image | |
* | |
* @link https://codex.wordpress.org/Plugin_API/Action_Reference/login_head | |
*/ | |
function my_login_logo() { | |
echo '<style type="text/css">.login h1 a { background-image:url('. get_stylesheet_directory_uri() .'/imgs/super_wp.png); }</style>'; | |
} | |
add_action('login_head', 'my_login_logo'); |
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 | |
/** | |
* @package CD Hide WordPress Version | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: CD Hide WordPress Version | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This plugin removes the version number from WordPress pages | |
Author: Carlo Daniele |
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 | |
/** | |
* @package Food_example_plugin_2 | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Food example plugin 2 | |
Plugin URI: http://wordpress.org/extend/plugins/# | |
Description: This is an example plugin for WPMU DEV readers | |
Author: Carlo Daniele |