The quickest and dirtiest way to do this is to add one line to the insert_posts()
function, just before the $imported++;
line:
}
add_post_meta( $post_id, 'raw_import_data', json_encode( $twitter_raw ) );
// NEW LINE (change 1001 to the image ID):
set_post_thumbnail( $post_id, 1001 );
$imported++;
}
This will obviously disappear if you ever update the plugin. There aren’t any hooks built into the plugin to add your desired functionality, so a more rigorous solution would have to periodically query for posts with, say, the keyring_service
post metadata set, check for any that don’t have the thumbnail set, and then set it to the default.
Related Posts:
- How can I make add_image_size() crop from the top?
- What plugin can I use to create a list / slideshow of featured images?
- Prevent publishing the post before setting a featured image?
- Modify featured image URL at runtime
- Add post thumbnail from external image with plugin
- Thumbnail with different sizes
- Meteor Slides as header only for homepage and Use featured image of each page as header for respective pages
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- AJAX image upload with a upload progress bar using media_handle_upload
- Converting Attachment to Images?
- ReOrder Post Within Categories plugin with featured image
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- Set featured image using javascript in post editor
- Add padding while generating thumbnail
- How to export all content with feature images?
- Redirect to another page using contact form 7? [closed]
- Is there a best practice remediation for PhpStorm’s warning that void function the_post_thumbnail is used?
- Plugin to hide image in excerpt
- Cropping images from top center using Jetpack Photon
- Add “Featured Image” box in my plugin post page
- Couple of beginner’s questions [closed]
- Scrape a webpage for image and add it to post
- Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won’t change to new image size?
- Add_image_size not generating correct size
- Multiple Post Thumbnails Plugin – Need help with code
- How to hide featured images of all posts falling under the same category in wordpress?
- Revision featured image
- Allow webp use on website but disallow webp as featured image during post creation
- Upload Image with a file URL and show dynamically on Frontend
- insert og image link in wordpress post
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- Display Multiple Photos as Featured Image when mouse moves on to it post
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- automatically set random featured image by category in wordpress on post
- Import 2000 posts from one website to another
- Hide Featured Image in AMP
- WordPress create thumbnails on demand
- Automatic set a featured image from the first image’s url (or tag) in the article
- Does WordPress have a way of changing the ‘Natural’ size of uploaded images?
- Update (a function) post’s featured image as soon as $image_url changes
- Can’t get or display post thumbnail in wordpress
- Adding featured image to post display widget
- Do something with thumbnail image on post publish
- How to force regenerate thumbnails in WordPress posts?
- How to add featured image on front end form?
- Lazy Load sometimes don’t work
- Determine if get_the_image has image on Get the image Plugin
- Advanced Custom Field User Help URL
- Retrieve post thumbnails
- featured image problem with custom post type
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- when i use wp automatic plugin post shows broken images
- Display Video as Post Thumbnail
- Get URL for featured image for posts? [closed]
- Multiple Post Thumbnails Not Returning URL for Background Image
- Why is it important to deactivate a plugin before deleting it?
- Membership / subscription plugins – alternatives [closed]
- Manually Removing Plugins
- shortcode doesn’t work
- Will WordPress username displayed somewhere in the site?
- recommended breadcrumb plugins with possibility for hiding “Home” link [closed]
- Manually installed plugin doesn’t show up
- upgrade plugin in wordpress
- building plugin and it is displaying above plugins page
- load_theme_textdomain path
- How to update plugins with database updates if I use svn
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Why WordPress plugin url ajax doesn’t work?
- Send reply with pre-prepared answers
- Using Wishlist Member and I need to access a user’s status
- How to add wp visual editor in a custom widget?
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- allow photo/video in comments
- Excluding private/protected posts via IP
- Can’t get Gutenberg InspectorControls to work
- Mass SQL WordPress Meta Key deletion
- order posts by `meta_key`, Does not display posts that does not have `meta_key`
- How to change the wp_upload_dir() path in plugin
- Ambrosite Next/Previous Post Link Plus or WP next_post_link to cycle through top level category
- wp-mail attachment is not sent for no reason?
- I can’t change permalink in WordPress 4.5.3
- Could not add ‘LoginLogout’ link using BAW login logout plugin
- wp_options not returning value for logged out users?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function
- Front Page of Site Has Gone Replaced By Random Page
- How can I show login popup when user clicks on download button
- Flexslider empty slide
- Adding javascript to header of MetroMagazine theme
- How to Save settings of custom tab product page in admin side in a database?
- Issue: CSV file upload works only when “View page source” is done
- Get plugin versions in xml/json format
- Make a wordpress site similar to Hot Or Not – Image rating system [closed]
- How to submit readme.txt file in wordpress directory
- wordpress shortcode A executing code from shortcode B
- How to create plugin list groups?
- WordPress Code Access to Restricted Content without Registration
- How to pre-set WordPress settings for specific posts?
- Two sites one PC
- PHP if url extension action=discussion condition use [closed]
- FacetWP custom display based on post type [closed]