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( 'muse_shortcode_section' ) ) { | |
/** | |
* [muse-section section="SECTION"] Shortcode to Display the Section | |
* | |
* @param $attrs | |
* | |
* @return false|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 | |
// Disable Automatic Trim of the Content to the Excerpt | |
remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' ); |
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( 'prefix_scripts_datepicker' ) ) { | |
/** | |
* Custom Settings of the jQuery UI Datepicker | |
*/ | |
function prefix_scripts_datepicker() { | |
$datepicker = ' |
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( 'prefix_scripts' ) ) { | |
/** | |
* Custom Scripts for the 'menu' Post Type | |
*/ | |
function prefix_scripts() { | |
if ( is_singular( 'menu' ) ) { |
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( 'prefix_remove_type_attr' ) ) { | |
/** | |
* Remove 'type' Attribute of Scripts and Styles | |
*/ | |
function prefix_remove_type_attr( $tag ) { | |
return preg_replace( "/type=['\"]text\/(javascript|css)['\"]/", '', $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
<?php | |
// Unregister "reservation" post type | |
if ( ! function_exists( 'forqy_unregister_post_type_reservation' ) ) { | |
function forqy_unregister_post_type_reservation() { | |
unregister_post_type( 'reservation' ); | |
} |
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( 'prefix_socials_change' ) ) { | |
/** | |
* Add/change FORQY Social Icons | |
*/ | |
function prefix_socials_change( $socials ) { | |
// Add icon |
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( 'prefix_scripts_datepicker' ) ) { | |
/** | |
* Custom Settings of the jQuery UI Datepicker | |
* @url https://api.jqueryui.com/datepicker/ | |
*/ | |
function prefix_scripts_datepicker() { |
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 | |
// Add Custom Metabox to Reservations | |
if ( ! function_exists( 'forqy_metabox_reservation_custom_register' ) ) { | |
function forqy_metabox_reservation_custom_register( $meta_boxes ) { | |
$meta_boxes[] = array( | |
'id' => 'forqy-metabox-reservation-custom', |
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 | |
// Replace jQuery Version in a WordPress | |
if ( ! function_exists( 'forqy_jquery_replace' ) ) { | |
function forqy_jquery_replace() { | |
if ( ! is_admin() ) { |