Skip to content

Instantly share code, notes, and snippets.

View andizer's full-sized avatar
👋

Andy andizer

👋
View GitHub Profile
@andizer
andizer / AdminPage.php
Created October 20, 2024 06:29
Yoast internal links plugin
<?php
namespace Andizer\Plugin\YoastInternalLinks;
class AdminPage {
public const SECTION = 'andizer-internal-linking';
public function register() {
\add_action( 'admin_menu', $this );
}
@andizer
andizer / FB locales compare
Last active August 29, 2015 14:16
Compare a list of locales with the actual xml file on facebook to check for new additions.
<?php
// This list is not actual, because it's shortened
$fb_valid_fb_locales = array(
'ca_ES',
'cs_CZ',
'cy_GB',
'da_DK',
'de_DE',
'eu_ES',
'en_PI',
@andizer
andizer / ClassForward.php
Last active May 26, 2020 08:40
This example forwards class functionality to the given class
<?php
class Bla {
private static $TargetClass = 'Foo';
public function __callStatic($Method, $Args = array()) {
self::CallMethod($Method, $Args);
}