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 posts | |
* @package Edubin | |
* Version: 1.0.0 | |
*/ | |
$post_id = edubin_get_id(); | |
$prefix = '_edubin_'; | |
$defaults = edubin_generate_defaults(); | |
$page_header_enable = get_post_meta($post_id, $prefix . 'page_header_enable', true); |
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
/* | |
******************************************************************************************************************** | |
****************************** Stop wordpress / plugin / theme updates ********************************************* | |
******************************************************************************************************************** | |
*/ | |
function shakti_remove_wp_core_updates() | |
{ | |
global $wp_version; | |
return (object)array( |
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
function custom_my_account_menu_items( $items ) { | |
unset($items['downloads']); | |
return $items; | |
} | |
add_filter( 'woocommerce_account_menu_items', 'custom_my_account_menu_items' ); |
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 | |
if (!class_exists('bookingpress_woocommerce')) { | |
class bookingpress_woocommerce { | |
function __construct() { | |
register_activation_hook(BOOKINGPRESS_WOOCOMMERCE_DIR.'/bookingpress-woocommerce.php', array('bookingpress_woocommerce', 'install')); | |
register_uninstall_hook(BOOKINGPRESS_WOOCOMMERCE_DIR.'/bookingpress-woocommerce.php', array('bookingpress_woocommerce', 'uninstall')); | |
//Admiin notices | |
add_action('admin_notices', array($this, 'bookingpress_admin_notices')); |
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
[memb_has_any_tag tagid=20684] | |
<div id="iyg-wrapper"> | |
<h4>Australia</h4> | |
<div id="iyg-btn-wrapper"> | |
<a href="https://cw253.infusionsoft.app/app/form/member-guest-voucher-booking" id="invoice-contact-us-button" rel="noopener">Invite Your Guest</a> | |
<a href="https://cw253.infusionsoft.app/app/form/member-only-voucher-booking-2" id="invoice-contact-us-button" rel="noopener">Register Yourself</a> | |
</div> | |
</div> | |
[/memb_has_any_tag] |
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
[memb_has_any_tag tagid="Current Bx AUS Member"] | |
<h2>Paid Invoices</h2> | |
<hr> | |
<table class="table" width="100%"> | |
<thead> | |
<td>Invoice #</td> | |
<td>Status</td> | |
<td>Description</td> | |
<td>Invoice Total</td> | |
<td>Date Issued</td> |
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
Replace this line in your wp-config.php file: | |
define('WP_DEBUG', false); | |
with this: | |
ini_set('display_errors','Off'); | |
ini_set('error_reporting', E_ALL ); | |
define('WP_DEBUG', false); | |
define('WP_DEBUG_DISPLAY', false); |
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
/* | |
*************************************************************************************************** | |
***************************** Login redirect on welcome page ************************************** | |
*************************************************************************************************** | |
*/ | |
function my_login_redirect( $redirect_to, $request, $user ) { | |
$redirect_to = site_url("welcome"); | |
return $redirect_to; | |
} |