In the insert_posts
function, before the line $post_id = wp_insert_post( $post );
add the following (and suit to your needs):
Link to Twitter User Page
$post['post_content'] .= '<a href="http://twitter.com/__USERNAME__">'
.'Follow me on Twitter'
.'</a>';
and/or
Link to Twitter Status
$post['post_content'] .= '<a href="'.$post['twitter_permalink'].'">'
.'View this post on Twitter'
.'</a>';
Related Posts:
- Should all plugins be encapsulated in a Class?
- How to get the active theme’s slug?
- PHP code on Visual Composer Plugin
- Thumb rating for wordpress – top user
- Errors while using ajax from external wordpress page
- shortcode doesn’t work
- Setting up widgets in wordpress with a unique ID for the after_title argument
- post expire after x days
- allow arabic letters when register new account
- Adding a post shortcode to a page template?
- Why Better WP security plugin returns 418 I’m a Teapot “error”?
- Twitter-like follow system, is there any plugin?
- Sort products without thumbnail in WooCommerce shop page
- Create or Update thousands of woocommerce products via PHP
- send_headers don’t work on wordpress multisite
- Update Option Error: Notice: Undefined index
- The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
- Self deactivate plugins after an action occurs
- wp_redirect() not working in Insert PHP plugin in WordPress
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Avoid class name collision when using third party libraries in plugins?
- How to sanitize uploaded file filename from a plugin?
- Using WP Category Lists Plugin to Dynamically Display Category (PHP)
- Using a custom plugin to capture input data via Ajax and PHP
- Set and access global variable
- How to get the element ID from new menu list that added with add_filter()?
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- Replacing a plugin function with a custom renamed function doesn’t work
- How to output CMB2 select options from repeated groups select elements?
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- WP All Import – Execute Imports
- External RSS feed to WordPress Portfolio
- Create Gallery using Custom Post Type and add sum gallery as sub gallery of Main Gallery
- Notify comment author upon reply
- WordPress get_avatar function not correct working
- How to Create a shortcode to this php function
- add_action into another add_action not working
- Check if variable is set in filter
- Access a particular field in an array
- How to show the number of website visitors in my theme
- JQuery prepend a function
- Add User Role: Pre-saved in User-Meta [SOLVED]
- How to make a dynamic css class whose name changes every visit to confuse scraper
- How to create plugin/ page that reads from database
- Disabling a plugin lead to styles being shown as plain text
- Shortcode not working – quotes seems strange
- Using custom fields for image alt and title
- How to display registered customer list as dropdown in WooCommerce checkout?
- Error When Trying To Login [closed]
- Add the_post_thumbnail_url to a shortcode in function.php
- Echo out element to another page.
- Adding a Tag Parameter / Filter to My Shortcode
- Modify pages widget and make a plugin?
- Ajax call not working in wordpress through a plugin
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Redirect unloggedin users
- How to add custom plugin data to the cart in woocommerce using custom button on product page?
- Show prices with tax Inclusive in Minicart widget
- Custom fields not showing up in the user info (PaidMembershipsPro)
- WP Function does not trigger on Webhook API Call
- Cookie value changes back to previous value after changing
- Allowed memory size of 134217728 … wp-includes/wp-db.php on line 1989
- Undefined offset: 0 in WordPress after latest version upgrade [closed]
- Problem with checked box on wp car manager plugin
- issue concerning ob_end_flush functions.php
- In a plugin, How to update a json file using ajax
- Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?
- How to create algorithm for ordering posts in WordPress?
- wp-admin/admin-ajax.php 400 (Bad Request) plugin
- my hook or my function wont run in the cronjob
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- How to echo a PHP Code After the Content
- Woocommerce list variations that are added already to cart in Single Product
- Show custom taxonomy in theme
- Flexslider empty slide
- Update (a function) post’s featured image as soon as $image_url changes
- Passing ajax variable to more than one wordpress plugin function
- Social sharing plugin directing to blank page after post sharing
- How to order users alphabetically by name? in plugin UPME
- using href when creating wordpress plugin calls empty page instead of php file
- Media Playlist Plugin
- Saving custom form fields
- How to add php stylesheet to admin section instead of admin_head hook
- WordPress Background Audio – Continous AutoPlay
- Replace Dash (-) and Underscore ( _ ) with Space
- How use Dynamic hyperlink on each wordpress post?
- How to add homepage Widget?
- How to execute init or woocommerce_init only for checkout page
- how to restore wordpress backup(.rar) manually?
- White Screen When Includding A Folder With PHP Files
- WordPress create permalink structure for custom post type with userid
- wordpress jquery is not defined because the head tag is empty
- Two sites one PC
- PHP if url extension action=discussion condition use [closed]
- Text Wrapping in WPDataTables
- How to get URL param for pagination in shortcode?
- Make plugin admin page visible to other roles
- How Create LastMod and Update Date Only on Taxonomy Category and Tags
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?