Skip to content

Instantly share code, notes, and snippets.

@drazenbebic
drazenbebic / self-hosted-plugin-updates-server.php
Last active May 26, 2024 10:12
Self-Hosted WordPress Plugin Updates (Server Plugin)
<?php
/*
Plugin Name: Self-Hosted WordPress Plugin Updates - Server
Description: Demo plugin showcasing a server which acts as a custom update server for other plugins.
Version: 1.0.0
Author: Drazen Bebic
Author URI: https://drazen.bebic.dev
Text Domain: shwpus
Domain Path: /languages
@drazenbebic
drazenbebic / self-hosted-plugin-updates-client.php
Created May 25, 2024 20:03
Self-Hosted WordPress Plugin Updates (Client Plugin)
<?php
/*
Plugin Name: Self-Hosted WordPress Plugin Updates - Client
Description: Demo plugin showcasing a client plugin which updates from a custom update server.
Version: 1.0.0
Author: Drazen Bebic
Author URI: https://drazen.bebic.dev
Text Domain: shwpuc
Domain Path: /languages
@drazenbebic
drazenbebic / phpcs.xml
Created May 16, 2024 07:18
Example PHP Code Sniffer Configuration File for WordPress
<?xml version="1.0" ?>
<ruleset
name="MyProject"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"
>
<description>My Project Coding Standard</description>
<!-- Set the coding standard -->