Skip to content

Instantly share code, notes, and snippets.

View birgire's full-sized avatar

Birgir Erlendsson birgire

View GitHub Profile
@birgire
birgire / functions.php
Created March 7, 2020 11:07 — forked from RichardNesbitt/functions.php
WP Bakery Page Builder - Add URL option to make entire column clickable
/* add this to your theme's functions.php file */
/* Add option for URL to column settings */
vc_add_param("vc_column", array(
"type" => "vc_link",
"class" => "",
"heading" => "Column Link",
"param_name" => "column_link"
));
@birgire
birgire / rapyd_card_payment_callback_debug.php
Last active May 13, 2022 11:58
WordPress plugin: Debug Rapyd Card payment callback
<?php
/**
* Plugin Name: Debug Rapyd Card payment callback.
* Description: This plugin saves the payload from the Rapyd Card callback into the order meta under the 'debug' key.
* Plugin URI: https://gist.github.com/birgire/beb3806eb15db4431e2ae0c35c6b53c4
* Author: birgire
* Author URI: https://github.com/birgire
* License: MIT
* Version: 0.0.4
*/
@birgire
birgire / my-stats-column-for-jetpack.php
Created February 8, 2023 22:05
WordPress Plugin: My Jetpack Stats Column
<?php
/**
* Plugin Name: My Jetpack Stats Column
* Plugin URI: http://xlino.com/projects/adding-a-stats-column-for-jetpack/
* Author: birgire
* Description: Adds a stats column to the posts table on the edit.php screen
* Version: 1.0.0
*/
add_action( 'admin_init', function()