You made that way more complicated than it needs to be.
add_filter( 'jetpack_open_graph_image_default', 'example_change_default_image' );
function example_change_default_image( $image ) {
return 'https://s0.wp.com/i/blank.jpg';
}
Just edit the function to return whatever URL you want.
Related Posts:
- How to disable Jetpack modules such as Stats?
- Cannot activate Jetpack on my server
- Jetpack Infinite Scrolling For Multiple Columns On Same Page?
- Popular posts by view with Jetpack
- Gravatar Hovercards (Jetpack) jQuery error
- Jetpack – stats_get_csv period parameter
- Using stats_get_csv to return a list of popular posts by views with thumbnails
- How do I update the site URL used by Jetpack subscribe widget [closed]
- Isotope with Infinite Scroll
- Jetpack infinite scroll not working on Twenty Twelve [closed]
- Can’t connect to my WordPress website using Windows 8 app?
- What does this number represent in JetPack stats? [closed]
- I have a self hosted blog but now the WordPress.com stats plugin has stopped working
- jetpack suddendly stopped working [closed]
- Jetpack social icons in other places on site
- How to remove WordPress’ Jetpack plugin completely? [duplicate]
- How do I remove quantcast from my sites?
- Customizing JetPack Publicize Sharing
- Jetpack infinite scroll not working on twentysixteen custom theme
- Change $content_width based on screen size (functions.php)
- Jetpack button location buffering [closed]
- Does Jetpack conflicts with load_template()?
- Hide Jetpack for Contributor [closed]
- How do i import email addresses into WordPress.com subscriptions? [closed]
- Hiding Jetpack Ads from users who are signed in?
- Jetpack Infinite Scroll – changing number of posts
- How to allow users to write jetpack custom post types? [closed]
- Missing Jetpack Contact Form button when running locally [closed]
- Why does Jetpack insert it’s script outside the tag?
- Updating shortlinks from staging [closed]
- Jetpack Publicize and Android
- How can I get the Jetpack Image plugin to open links in a new window? [closed]
- Infinite Scroll on Self-hosted WordPress [closed]
- How to remove Stats by jetpack dashboard widget?
- Publicize in Jetpack stopped working on Custom Post Type it works in Blog Posts
- Jetpack Top post widget (display post views)
- Unable to setup jetpack on my site
- Where does Jetpack store markdown?
- The plugin jetpack/jetpack.php has been deactivated due to an error: Plugin file does not exist
- Jetpack URL shortening, fixing after website URL change
- Infinite scroll function for Twenty Seventeen
- how to disable jetpack for non admins?
- Popular posts – based on pageviews
- Implementing backbone.js to retrieve category posts using JSON API
- Jetpack email sharing button to include image on email sent
- Is there a way to enable a Jetpack module via `functions.php`
- Pageview confusion [closed]
- Jetpack Infinite Scroll, Isotope and ImagesLoaded
- Force Jetpack to use og:url with http on an https website
- Force Jetpack to not use og:image tag for favicon / Site Icon [closed]
- Using Jetpack to track an Ajax powered blog [closed]
- Jetpack: Access visitor stats in templete
- How to run Jetpack from localhost? [closed]
- Is there a filter to define the OG image on a given post?
- Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?
- Trying to get custom post meta through Jetpack JSON API [closed]
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- How can you upload an image from within a settings page?
- Setting Login with User Name and Password default option for Jetpack Admin Login
- Allow latex in wordpress excerpt
- Infinite Scroll not working in own theme
- Open graph problem: Showing wrong description of homepage while sharing on Facebook [closed]
- Using GraphQL Plugin with Pods Framework
- Conditionally add apt. Open Graph meta data to different pages on WordPress site
- Compatibility of MathJax extension and JetPack [closed]
- what function can I use to automatically output og tags per page/post?
- How do I use this PHP library to access OpenGraph data in a child theme?
- Jetpack Upgrade fails with WP CLI [closed]
- Jetpack Comments with fall-back
- How can I add a second Open Graph image to a site using Yoast? [closed]
- How can I echo og:video url, if the post has video content?
- Jetpack “Connect to WordPress” serving insecure content under HTTPS
- Facebook preview Open Graph Object Debugger
- Incorrect url for sharing blog on linkedin [closed]
- strange behavior with comment position
- Custom CSS at Appearance > Edit CSS is missing after update [closed]
- Website Preview Graphic for WordPress Site
- How to have Tiled Galleries like in WordPress.com?
- Using Jetpack carousel w/o creating a gallery [closed]
- Jetpack CSS .screen-reader-text breaks mobile menu [closed]
- WordPress Facebook Open Graph plugin not working for 1 specific image [closed]
- When someone likes an article on my blog, they are prompted to log in on WordPress.com [closed]
- Sharing Buttons not Working – Sharing Settings [closed]
- JetPack comment threads are displaying above comment box? [closed]
- Why may one avoid Jetpack plugin? [closed]
- Shortcode not working in Jetpack Top Posts & Pages widget
- Jetpack Lazy load images fade in
- Register CPT if Jetpack Portfolio is not active and only once
- mydomain.com/wp-login redirects to wordpress.com/wp-login
- Fetching WP.me shortlinks for posts using WP Rest API
- Facebook sharing content problem
- How do plugin updates work?
- How can I stop Jetpack mobile theme from using full size featured images?
- Can’t publish posts, Jetpack won’t connect, empty notification emails to my inbox [closed]
- I’m think I’ve found a bug with JetPack 1.7 [closed]
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Jetpack ‘Blog Subscription’ widget doesn’t add emails to
- Open graph issue on my theme
- Delete old JetPack Site Stats? encrypted_search_terms in top search terms [closed]
- Footnotes with dynamic title attributes?