Display site language setting in source code

Is it possible to display <!– plugin version 123 (Fr) –> if the language is French? Yes, it is possible and you can use get_bloginfo( ‘language’ ) which returns a language tag like en-US for English (US). So if you just want to retrieve the first 2-or-3 character code (e.g. en for en-US and en-UK) … Read more

How can I support plugins in a custom theme?

Underscores.me Framework has integrated support for Jetpack’s Infinite Scroll feature – you could just install the Automattic JetPack plugin and ensure that the Infinite Scroll feature is enabled. Lines 155-156 of the default underscores.me framework add Jetpack support if it’s installed: /** * Load Jetpack compatibility file. */ if ( defined( ‘JETPACK__VERSION’ ) ) { … Read more

Send email to multiple addresses on Contact Form 7, but exclude personal details on all but one

Contact Form 7 lets you set up multiple outgoing emails. Set the outgoing message for the ‘everyone-except-one’, and a 2nd outgoing message for ‘just-the-one’. And use the BCC feature to keep everyone’s email confidential. Info on how to do that is on the CF7 site and support forums…..which is where you should ask for support … Read more

wc_get_template new template does not showing up

plugin_dir_path( FILE ) will return the current directory. Not sure where you call this q343_get_template() function if it’s on a subdirectory then plugin_dir_path( FILE ) is returning that subdirectory path. From WordPress Code Reference https://developer.wordpress.org/reference/functions/plugin_dir_path/ The “plugin” part of the name is misleading – it can be used for any file, and will not return … Read more