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
<IfModule mod_filter.c> | |
AddOutputFilterByType DEFLATE | |
application/atom+xml | |
application/javascript | |
application/json | |
application/rss+xml | |
application/vnd.ms-fontobject | |
application/x-font-ttf | |
application/xhtml+xml | |
application/xml |
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 | |
// Start preparing an array to insert Download Monitor's Download Version (which is a CPT with Download as parent post). | |
$dlm_download_version = array( | |
'post_title' => 'Download #' . $download_id . ' File Version', | |
'post_type' => 'dlm_download_version', | |
'post_status' => 'publish', | |
'post_parent' => $download_id, | |
'post_author' => $attachment->post_author, | |
); |
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
# Basic queries to analyse canceled subscriptions using EDD Recurring Payments pre EDD 3.0 | |
# Use EXPLAIN if you have large stores since the "notes" column is not indexed and queries can take some time | |
# Some of these reports might be worth storing as Views and look at the graphs PHPMyAdmin can also create from them | |
# List subscription cancelation with creation and cancelation date, as well as the user who canceled | |
# good as a basis for further queries | |
SELECT ID, | |
created, | |
REGEXP_SUBSTR( REGEXP_SUBSTR( notes, '.* Status changed from active to cancelled .*' ), '^[a-z]+ [0-9]+, [0-9]+' ) AS 'date', |
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 | |
/** | |
* Created by PhpStorm. | |
* User: fredbradley | |
* Date: 05/10/2017 | |
* Time: 11:43 | |
*/ | |
namespace FredBradley\CranleighWPAdmin; |
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: KB Support - Ninja Forms | |
* Plugin URI: https://kb-support.com/ | |
* Description: Custom KBS functions for Ninja Forms | |
* Version: 1.0 | |
* Date: 17th December 2019 | |
* Author: KB Support <contact@kb-support.com> | |
* Author URI: http://kb-support.com | |
* Text Domain: kbs-ninja |
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
/* | |
* The code below should be placed in your functions.php file, inside your (currently) active theme. | |
**/ | |
/* | |
* The filter we use to provide Modula with our custom config aka the values we want to overwrite in Modula's backend. | |
* Note: the second parameter in add_filter has to be the same as the function name - as provided in the exampel below. | |
* To learn more about filters, visit this link: https://developer.wordpress.org/reference/functions/add_filter/ | |
**/ | |
add_filter( 'modula_whitelabel_config', 'whitelabel_advanced_config' ); |
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
add_filter( 'modula_admin_page_tabs', 'remove_license_tab', 99 ); | |
function remove_license_tab( $tabs ){ | |
unset( $tabs['licenses'] ); | |
return $tabs; | |
} |
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: {Plugin_Name} | |
* Plugin URI: https://www.siteurl.com | |
* Description: {Short Description Message Goes here} | |
* Version: 1.0.0 | |
* Author: WPChill | |
* Author URI: https://wpchill.com | |
* License: GPLv3 or Later | |
* |
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
if ( ! function_exists( 'mt_pdf_template_extra_fields' ) ) { | |
/** | |
* Implements filter: eddpdfi_pdf_template_extra_fields | |
* | |
* Adds extra information to the PDF document. The VAT PDF template was created from | |
* the 'blue' template of the PDF Invoices plugin. It did not include address information | |
* and different countries have different requirements for addressing. So filter shows | |
* how basic buyer address information and their IP address can be added to the invoice. | |
* | |
* The PDF plug-in uses some arbitrary units of measurement and each line in the template |
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 | |
/** | |
* Template part for displaying a frontpage section | |
* | |
* @link https://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package Portum | |
*/ | |
$frontpage = Epsilon_Page_Generator::get_instance( 'portum_frontpage_sections_' . get_the_ID(), get_the_ID() ); |
NewerOlder