Skip to content

Instantly share code, notes, and snippets.

View Ataurr's full-sized avatar
🎯
Focusing

AtaurR Ataurr

🎯
Focusing
View GitHub Profile
global $wpdb;
//old name
$table_booking_logs_old = $wpdb->prefix . 'rbookinglogs';
$table_branch_manager_old = $wpdb->prefix . 'branch_manager';
//new name
$table_booking_logs = $wpdb->prefix . 'cbxrbooking_log_manager';
$table_branch_manager = $wpdb->prefix . 'cbxrbooking_branch_manager';
@contempoinc
contempoinc / functions.php
Created November 27, 2016 17:09
Admin CSS to remove Slider Revolution & Visual Composer Notices
<?php
/*-----------------------------------------------------------------------------------*/
/* Admin CSS */
/*-----------------------------------------------------------------------------------*/
if(!function_exists('ct_admin_css')) {
function ct_admin_css() {
echo '<style>';
echo 'tr[data-slug="slider-revolution"] + .plugin-update-tr, .vc_license-activation-notice, .rs-update-notice-wrap, tr.plugin-update-tr.active#js_composer-update { display: none !important;}';
@thednp
thednp / class-fw-extension-yourextension.php
Last active April 5, 2016 13:42
Plugin template extension for UNYSON framework
<?php if ( ! defined( 'FW' ) ) { die( 'Forbidden' ); }
class FW_Extension_Yourextension extends FW_Extension {
private $post_type = 'yourposttype';
private $slug = 'yourslug';
/**
* @internal
*/
@Ataurr
Ataurr / Font Awesome 4.4.0 font list array
Last active August 29, 2015 14:26
Font Awesome 4.4.0 font list array
$fontawesome_icons = array('fa-500px', 'fa-amazon', 'fa-balance-scale', 'fa-battery-0', 'fa-battery-1', 'fa-battery-2', 'fa-battery-3', 'fa-battery-4', 'fa-battery-empty', 'fa-battery-full', 'fa-battery-half', 'fa-battery-quarter', 'fa-battery-three-quarters', 'fa-black-tie', 'fa-calendar-check-o', 'fa-calendar-minus-o', 'fa-calendar-plus-o', 'fa-calendar-times-o', 'fa-cc-diners-club', 'fa-cc-jcb', 'fa-chrome', 'fa-clone', 'fa-commenting', 'fa-commenting-o', 'fa-contao', 'fa-creative-commons', 'fa-expeditedssl', 'fa-firefox', 'fa-fonticons', 'fa-get-pocket', 'fa-gg', 'fa-gg-circle', 'fa-hand-grab-o', 'fa-hand-lizard-o', 'fa-hand-paper-o', 'fa-hand-peace-o', 'fa-hand-pointer-o', 'fa-hand-rock-o', 'fa-hand-scissors-o', 'fa-hand-spock-o', 'fa-hand-stop-o', 'fa-hourglass', 'fa-hourglass-1', 'fa-hourglass-2', 'fa-hourglass-3', 'fa-hourglass-end', 'fa-hourglass-half', 'fa-hourglass-o', 'fa-hourglass-start', 'fa-houzz', 'fa-i-cursor', 'fa-industry', 'fa-internet-explorer', 'fa-map', 'fa-map-o', 'fa-map-pin', 'fa-map
@amdrew
amdrew / gist:8314e3108d1ce799c291
Last active February 29, 2016 19:10
Easy Digital Downloads - Frontend Submissions - Pay To Upload. Forces the vendor to pay for each file uploaded before the product is published
<?php
/**
* Plugin Name: Easy Digital Downloads - Frontend Submissions - Pay To Upload
* Plugin URI:
* Description: Forces the vendor to pay for each file uploaded before the product is published
* Author: Andrew Munro
* Author URI: http://sumobi.com
* Version: 1.0
*/
@hasinhayder
hasinhayder / enq-js.php
Last active March 4, 2016 15:59
generate wp_enqueue_script calls for all the js files in the current directory
#!/usr/bin/env php
<?php
foreach(glob("*.js") as $js){
echo "wp_enqueue_script( 'wptheme-{$js}', get_template_directory_uri().'/js/{$js}', array('jquery'),'1.0',true);\n";
}
@hasinhayder
hasinhayder / enq-css.php
Last active February 21, 2021 07:08
generate wp_enqueue_style calls for all the css files in current directory
#!/usr/bin/env php
<?php
foreach(glob("*.css") as $css){
echo "wp_enqueue_style( 'wptheme-{$css}', get_template_directory_uri().'/css/{$css}',null,'1.0');\n";
}
@hasinhayder
hasinhayder / wp_adjacent_posts_links.php
Created October 10, 2014 18:43
Getting link for next and previous post in WordPress
@geksilla
geksilla / bootsrap_class_list
Last active April 29, 2023 03:59
Bootstrap css class list
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
IMPORTANT
Please duplicate this radar for a Safari fix!
This will clean up a 50-line workaround.
rdar://22376037 (https://openradar.appspot.com/radar?id=4965070979203072)
//////////////////////////////////////////////////////////////////////////////
(Now available as a standalone repo.)