Skip to content
On-Load By Pass Switches
You are here:
- Home
- File
- On-Load By Pass Switches
-
Version
-
Download
170
-
File Size
7.43 MB
-
File Count
1
-
Create Date
June 1, 2016
-
Last Updated
September 5, 2016
Go to Top
/**
* Add Twitter/X Title, Description and Image
*/
add_action('wp_head', 'cs_add_twitter_meta', 20);
function cs_add_twitter_meta() {
$twitter_image = 'https://cselectric.co.in/hi/wp-content/uploads/2026/08/CS-Electric_Logo-300x252-1.webp';
$title = wp_get_document_title();
$description = get_post_meta(
get_the_ID(),
'_yoast_wpseo_metadesc',
true
);
if (empty($description)) {
$description = get_bloginfo('description');
}
?>