This file contains hidden or 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 custom stylesheet to WordPress header | |
wp_enqueue_style( 'yorlinq-layout', get_home_url() . '/wp-content/uploads/network/css/yl-styling.css' ); |
This file contains hidden or 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
// Shortcode for 'Copyright notice' with current year: [yl_copyright_notice] | |
function yl_copyright_notice_shortcode() { | |
return '© ' . date('Y') . ' ' . get_bloginfo('name') . '. ' . __( 'All rights reserved.', 'yorlinq' ) . '<br class="uk-hidden@s"> ' . __( 'Developed by', 'yorlinq' ) . ' <a href="https://yorlinq.nl" target="_blank" class="uk-text-primary">Yorlinq</a>.'; | |
} | |
add_shortcode('yl_copyright_notice','yl_copyright_notice_shortcode'); |
This file contains hidden or 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 ACF fields | |
if( function_exists('acf_add_local_field_group') ): | |
acf_add_local_field_group(array( | |
'key' => 'group_61fb8a113f4f5', | |
'title' => 'Yorlinq Dynamic Order Info plugin', | |
'fields' => array( | |
array( | |
'key' => 'field_61fb9e02ae2fb', | |
'label' => 'Algemeen', |
This file contains hidden or 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
// ACF fields | |
if( function_exists('acf_add_local_field_group') ): | |
acf_add_local_field_group(array( | |
'key' => 'group_5fb7906422ec4', | |
'title' => 'Yorlinq WhatsApp plugin', | |
'fields' => array( | |
array( | |
'key' => 'field_61fcc8b8c23be', | |
'label' => 'Algemeen', |
This file contains hidden or 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
// Shortcode for 'Page title': [yl_page_title] | |
function yl_page_title_shortcode() { | |
return get_the_title(); | |
} | |
add_shortcode('yl_page_title','yl_page_title_shortcode'); |
This file contains hidden or 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
// Shortcode for 'Shop city': [yl_shop_address_city] | |
function yl_shop_address_city_shortcode() { | |
$address_city = get_option( 'woocommerce_store_city', '' ); | |
return apply_filters( 'woocommerce_countries_base_address', $address_city ); | |
} | |
add_shortcode( 'yl_shop_address_city', 'yl_shop_address_city_shortcode' ); |
This file contains hidden or 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
// Shortcode for 'Shop postal code': [yl_shop_address_postal_code] | |
function yl_shop_address_postal_code_shortcode() { | |
$address_postal_code = get_option( 'woocommerce_store_postcode', '' ); | |
return apply_filters( 'woocommerce_countries_base_address', $address_postal_code ); | |
} | |
add_shortcode( yl_shop_address_postal_code', 'yl_shop_address_postal_code_shortcode' ); |
This file contains hidden or 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
// Shortcode for 'Shop street': [yl_shop_address_street] | |
function yl_shop_address_street_shortcode() { | |
$address_street = get_option( 'woocommerce_store_address', '' ); | |
return apply_filters( 'woocommerce_countries_base_address', $address_street ); | |
} | |
add_shortcode( 'yl_shop_address_street', 'yl_shop_address_street_shortcode' ); |
This file contains hidden or 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
// Shortcode for 'Blog url': [yl_blog_url] | |
function yl_blog_url_shortcode() { | |
return get_bloginfo('url'); | |
} | |
add_shortcode('yl_blog_url','yl_blog_url_shortcode'); |
This file contains hidden or 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
// Shortcode for 'Blog email': [yl_blog_email] | |
function yl_blog_email_shortcode() { | |
return get_bloginfo('admin_email'); | |
} | |
add_shortcode('yl_blog_email','yl_blog_email_shortcode'); |