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
/** | |
* Remove the slug from published post permalinks. Only affect our CPT though. | |
*/ | |
function gp_remove_cpt_slug( $post_link, $post, $leavename ) { | |
if ( 'race' != $post->post_type || 'publish' != $post->post_status ) { | |
return $post_link; | |
} | |
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
/** | |
* Have WordPress match postname to any of our public post types (page, post, race) | |
* All of our public post types can have /post-name/ as the slug, so they better be unique across all posts | |
* By default, core only accounts for posts and pages where the slug is /post-name/ | |
*/ | |
function gp_parse_request_trick( $query ) { | |
// Only noop the main query | |
if ( ! $query->is_main_query() ) | |
return; |
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
/** | |
* Admin page markup | |
* @since 0.1.0 | |
*/ | |
public function admin_page_display() { | |
self::admin_page_setup(); | |
?> | |
<div class="wrap cmb_options_page <?php echo self::$key; ?>"> |
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 | |
/** | |
* Facebook Conversion Pixel Options | |
* @version 1.0 | |
*/ | |
class Fb_Pxl_Admin { | |
/** | |
* Option key, and option page slug | |
* @var string |
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 | |
/** | |
* Facebook Conversion Pixel Options | |
* @version 1.0 | |
*/ | |
class Fb_Pxl_Admin { | |
/** | |
* Option key, and option page slug | |
* @var string |
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 | |
/** | |
* Facebook Conversion Pixel Options | |
* @version 1.0 | |
*/ | |
class Fb_Pxl_Admin { | |
/** | |
* Option key, and option page slug | |
* @var string |
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
public static $key = 'fb_pxl_options'; |
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 | |
/** | |
* Facebook Conversion Pixel Options | |
* @version 1.0 | |
*/ | |
class Fb_Pxl_Admin { | |
/** | |
* Option key, and option page slug | |
* @var string |
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: Facebook Conversion Pixel | |
Plugin URI: n/a | |
Description: Add Facebook Conversion Pixels to Posts, Pages, or any other custom post types. | |
Version: 1.0 | |
Author: Kellen Mace | |
Author URI: http://kellenmace.com/ | |
License: GPLv2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
/** | |
* Enable Subscriptions Options for supporting product types and payment gateways | |
* @package exchange-addon-recurring-payments | |
* @since 1.0.0 | |
*/ | |
if( class_exists( 'IT_Exchange_Recurring_Payments' ) ) { | |
class IT_Exchange_Subscriptions extends IT_Exchange_Recurring_Payments { |
OlderNewer