This file contains 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: Mikes Plugin Boilerplate | |
* Plugin URI: https://mikesplugins.co.uk | |
* Description: A basic boilerplate for writing WordPress plugins | |
* Version: 1.0 | |
* Date: 23 April 2018 | |
* Author: Mike Howard | |
* Author URI: https://mikesplugins.co.uk/ | |
* Text Domain: mikes-plugins |
This file contains 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 | |
$terms = wp_get_post_terms( $post_id, 'ticket_category' ); | |
if ( $terms ) { | |
$output = array(); | |
foreach( $terms as $term ) { | |
$output[] = $term->name | |
} |
This file contains 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 | |
/** | |
* Do not process emails from specified addresses | |
* | |
* @param bool $process True to process, false to halt | |
* @param array $data Array of email data | |
* @return bool | |
*/ | |
function kbs_ems_stop_processing_email_addresses( $process, $data ) { | |
if ( $process ) { |
NewerOlder