Skip to content

Instantly share code, notes, and snippets.

View eSaner's full-sized avatar

Eric Saner eSaner

  • JMU Libraries
  • St. Louis, MO
  • 09:25 (UTC -06:00)
View GitHub Profile
@Xilonz
Xilonz / bedrock-satispress.php
Last active March 17, 2020 10:36
Bedrock SatisPress MU-Plugin
<?php
/**
* Plugin Name: Bedrock StatisPress
* Plugin URI: https://steenbergen.design
* Description: An MU Plugin that ties Bedrock and SatisPress together. Allows for autoupdates and cleans up the admin dasboard.
* Version: 1.0.0
* Author: Steenbergen Design
* Author URI: https://steenbergen.design
* License: MIT License
*/
@nikolov-tmw
nikolov-tmw / custom-menu-panel.php
Last active February 22, 2024 21:29
This registers a custom meta box for nav menus and renders it. Obviously $my_items would ideally be not hard-coded and instead it would come somewhere from the DB. The custom items add to the menu and save properly, but will probably not be displayed correctly. You might need to hook to the 'wp_setup_nav_menu_item' filter in order to fix the men…
<?php
function my_register_menu_metabox() {
$custom_param = array( 0 => 'This param will be passed to my_render_menu_metabox' );
add_meta_box( 'my-menu-test-metabox', 'Test Menu Metabox', 'my_render_menu_metabox', 'nav-menus', 'side', 'default', $custom_param );
}
add_action( 'admin_head-nav-menus.php', 'my_register_menu_metabox' );
/**
@oodavid
oodavid / README.md
Last active October 11, 2024 00:36 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/