This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'ABSPATH' ) ) exit; | |
/* | |
Plugin Name: Stop Password Authentication Email | |
Description: Stops the password authentication email from being sent out when a new user registers. | |
Version: 1.0 | |
Author: Kenny Hall | |
Author URI: http://kennyinthewild.com | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Register_Custom_Taxonomy | |
{ | |
public function __construct() | |
{ | |
add_action('init', array( $this, 'Register_Operating_System_Taxonomy' ), 0); | |
add_action('init', array( $this, 'Register_MakeModel_Taxonomy' ), 0); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Phones Custom Post Type | |
* Plugin URI: https://github.com/klhall1987/custom-post-type-example | |
* Description: An example of how to build a custom post type and attach custom taxonomies in WordPress. | |
* Version: 1.0 | |
* Author: Kenny Hall | |
* Author URI: http://kennyinthewild.com | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*******JavaScipt(Not sure what all I have done to this script)******* | |
jQuery(document).ready(function ($){ | |
$("#cfn-body p").css("margin", "0"); | |
var height = $("#cfn-body").outerHeight(true); | |
alert($("#cfn-body").height()); | |
$(".site-footer").css("padding-bottom", height + "px"); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Register Custom Taxonomy | |
function custom_taxonomy() { | |
$labels = array( | |
'name' => _x( 'Taxonomies', 'Taxonomy General Name', 'text_domain' ), | |
'singular_name' => _x( 'Taxonomy', 'Taxonomy Singular Name', 'text_domain' ), | |
'menu_name' => __( 'Taxonomy', 'text_domain' ), | |
'all_items' => __( 'All Items', 'text_domain' ), | |
'parent_item' => __( 'Parent Item', 'text_domain' ), | |
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class user | |
{ | |
/** | |
* @var | |
*/ | |
private $userPhone; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class phone | |
{ | |
/** | |
* @var string | |
*/ | |
private $brand = ''; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined( 'ABSPATH' ) ) exit; | |
/* | |
Plugin Name: Ninja Forms Aweber Filterable Strings | |
Description: Add a filter to make stings translatable. | |
Version: 1.0 | |
Author: Kenny Hall | |
Author URI: http://kennyinthewild.com | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'ninja_forms_submission_pdf_fetch_sequential_number', 'seq_filter', 10, 2); | |
function seq_filter( $bool ) | |
{ | |
$bool = true; | |
return $bool; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$numbers = array( | |
12, | |
1551, | |
'21', | |
'5115', | |
'I am a string', | |
); |