Skip to content

Instantly share code, notes, and snippets.

@Benoti
Benoti / wp-hook-in-page.php
Last active August 29, 2015 14:17
Function to list active hooks in a WordPress post.
<?php
/**
* Created by PhpStorm.
* User: Benoti
* Date: 29/03/15
* Time: 13:00
*
*/
@Benoti
Benoti / hover_css_array.php
Last active August 29, 2015 14:14
Array of all effects available in Hover.css
<?php
$array = array(
'version' => '2.0.0',
'prefix' => 'hvr-',
'hoverclass' => array (
'transition' => array(
'grow' => 'Grow', 'shrink' => 'Shrink', 'pulse' => 'Pulse', 'pulse-grow' => 'Pulse grow', 'pulse-shrink' => 'Pulse Shrink', 'push' => 'Push', 'pop' => 'Pop', 'bounce-in' => 'Bounce in',
'bounce-out' => 'Bounce out', 'rotate' => 'Rotate', 'grow-rotate' => 'Grow rotate', 'float' => 'Float', 'sink' => 'Sink', 'bob' => 'Bob', 'bob-float' => 'Bob float', 'hang' => 'Hang',
'hang-sink' => 'Hang sink', 'skew' => 'Skew', 'skew-forward' => 'Skew forward', 'skew-backward' => 'Skew backward', 'wobble-vertical' => 'Wobble vertical', 'wobble-horizontal' => 'Wobble horizontal',
@Benoti
Benoti / brozzme-form-cpt.php
Last active August 29, 2015 14:11
[SNIPPET OF CODE] For debugging cmb2 => this plugin doesn't work if another plugin with cmb2 library has already been activate. Working if the another is deactivated.
$fcpt_posttype = 'submissions';
global $fcpt_posttype;
global $myCustomTypeOptions;
// Register Custom Post Type submissions
function brozzme_fcpt_submission_post_type() {
global $fcpt_posttype;
@Benoti
Benoti / brozzme-rapid-pub_with_cpt.php
Last active August 29, 2015 14:11
[SNIPPET OF CODE] For cmb2 debugging. Working
$brp_clt_ads ='customer_ads'; //id du custom post
global $brp_clt_ads;
add_action('init', 'customer_ads_init');
function customer_ads_init()
{
global $brp_clt_ads;
$labels_settings = array(
'name' => 'Annonces',
'singular_name' => 'Annonce',
<?php
/**
* Plugin Name: Brozzme SQUEEZE Atts
* Plugin URL: http://brozzme.com/squeeze-atts/
* Description: Remove post and its attachments
* Version: 0.1
* Author: Benoît Faure
* Author URI: http://brozzme.com
*/