Tradesw Share Intent
Description
This plugin is hard coded with most modern used metadata. We do this to save messy admin data storage of options.
Features
-
Performance (SEO): Native intents don't require external scripts to load from Facebook or X. This keeps your "Daily Brief" pages lightweight, which directly helps maintain that GSC performance and mobile-first indexing speed.
-
Privacy/Compliance: Since you aren't loading tracking pixels from social giants, you’re providing a "cleaner" experience for your more privacy-conscious intelligence readers.
-
Bypassing the "Burnout": You've essentially "future-proofed" the site. No more fighting with broken third-party plugins every time an API updates—you own the logic now.
The following meta tags will be added to your themes head:
<meta property="og:url" content="http://https%3A%2F%2Ftradesnet.us%2Fnew-test-post%2F" />
<meta property="og:url" content="Gets url of post" />
<meta property="og:type" content="article" />
<meta property="og:title" content="New test post" />
<meta property="og:image" content="gets url of featured image" />
<meta name="twitter:title" content="New test post" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://tradesnet.us/wp-content/uploads/2026/05/Russian-ICBM-Sarmat.webp" />
Upgrade Notice
If you find your theme has (duplicate) metadata tags in the head, be sure to comment out the ones you do not need in the file src/Frontend/FrontendInterface.php around line 35.
- And to deal with duplicate tags programatically, check your theme or other plugins that may have added meta tags to the head, you can add something like this to you themes child theme
functions.phpfile:
/**
* Check if meta tags are set from parent theme and remove action.
* @since 1.0.1
*/
function blog_over_child_remove_seo_tags() {
// We target a priority of 11 to ensure it runs AFTER the parent theme registers its hooks
remove_action( 'wp_head', 'blog_over_seo_meta_tags', 5 );
}
add_action( 'after_setup_theme', 'blog_over_child_remove_seo_tags', 11 );
- And if your theme does not support svgs (which is rare now days):
function tradesw_share_intent_add_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');
https://blog.cogitactive.com/website/enabling-wordpress-svg-safely/

Write a Reply or Comment