Paragraph
Bigger heading

Testing paragraph block
Testing H1 block
Testing quote
and citation
function zekadesign_print_scripts_styles() {
if ( is_user_logged_in() )
{
// Print all loaded Scripts
global $wp_scripts;
echo "<b>Scripts</b><br>";
foreach( $wp_scripts->queue as $script ) :
echo $script . ' ** ';
endforeach;
// Print all loaded Styles (CSS)
global $wp_styles;
echo "<b>Styles</b><br>";
foreach( $wp_styles->queue as $style ) :
echo $style . ' || ';
endforeach;
}
}
add_action( 'wp_print_scripts', 'zekadesign_print_scripts_styles' );
Taken from https://crunchify.com/how-to-print-all-loaded-java-scripts-and-css-stylesheets-handle-for-your-wordpress-blog/ and modified to include a check for logged in users.
How to obfuscate email using shortcode
<?php
/**
* Shortcode for the email obfuscation
* It will be used so we can have an email address displayed on the website
* Accepts:
* address - email address - required
* name - what to display on the front end. If left blank, email address will be used
* Usage: [ email address="[email protected]" name="Office" ]
*
**/
function zd_email_shortcode( $atts ) {
// Attributes
$atts = shortcode_atts(
array(
'address' => '',
'name' => '',
),
$atts,
'email'
);
$sanitizedEmail = sanitize_email( $atts['address'] );
$sanitizedName = sanitize_text_field( $atts['name'] );
if ( $sanitizedEmail )
{
$antispamEmail = antispambot( $sanitizedEmail );
return '<a href="mailto:' . $antispamEmail . '">' . ( $sanitizedName != '' ? $sanitizedName : $antispamEmail ) . '</a>';
}
}
add_shortcode( 'email', 'zd_email_shortcode' );
?>