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
; Resource Limits | |
max_execution_time = 300 | |
memory_limit = 128M | |
; Data Handling | |
post_max_size = 64M | |
; File Uploads | |
file_uploads = On | |
upload_max_filesize = 64M |
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
# http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size | |
http { | |
client_max_body_size 32m; | |
} |
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
// Set Datepicker Defaults | |
if ( ! function_exists( 'forqy_datepicker_defaults' ) ) { | |
function forqy_datepicker_defaults() { | |
?> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
jQuery(document).ready(function ($) { |
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 ( ! function_exists( 'forqy_remove_theme_mods' ) ) { | |
function forqy_remove_theme_mods() { | |
// https://codex.wordpress.org/Function_Reference/remove_theme_mods | |
remove_theme_mods(); | |
} | |
add_action( 'after_setup_theme', 'forqy_remove_theme_mods' ); |
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 | |
// Increase PHP memory limit for WordPress | |
define( 'WP_MEMORY_LIMIT', '256M' ); | |
// Increase PHP time limit for WordPress | |
set_time_limit( 300 ); |
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 | |
// Unregister events | |
if ( ! function_exists( 'salmon_unregister_event' ) ) { | |
function salmon_unregister_event() { | |
unregister_post_type( 'event' ); | |
} |
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 ( ! function_exists( 'forqy_navigation_item_add_class' ) ) { | |
function forqy_navigation_item_add_class( $classes = array(), $menu_item = false ) { | |
$classes[] = 'custom-class'; | |
return $classes; |
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 ( ! function_exists( 'forqy_remove_page_templates' ) ) { | |
function forqy_remove_page_templates( $templates ) { | |
// Project | |
if ( ! post_type_exists( 'project' ) ) { | |
unset( $templates['template-portfolio.php'] ); | |
unset( $templates['template-portfolio-categories.php'] ); |
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 ( ! function_exists( 'forqy_woocommerce_products_excerpt' ) ) { | |
function forqy_woocommerce_products_excerpt() { | |
?> | |
<div class="fy-product-excerpt"> | |
<?php the_excerpt(); ?> | |
</div> |
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 | |
// Move coupon code field | |
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ); | |
add_action( 'woocommerce_after_checkout_form', 'woocommerce_checkout_coupon_form' ); |
OlderNewer