Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sample-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Add text to the top of posts
* Plugin URI: https://instawp.com
* Description: InstaWP Git Deployment testing
* Version: 1.0.0
* Version: 1.0.4
* Author: Vikas
* Author URI: https://instawp.com
* Text Domain: instawp-sample-plugin
Expand All @@ -27,8 +27,8 @@

function add_my_text($content) {
// Define the text and style
$custom_text = '<div style="background-color: green; padding: 10px; border: 1px solid #ddd;">New change to the plugin</div>';
$custom_text = '<div style="background-color: blue; padding: 10px; border: 1px solid #ddd;">New change to the plugin</div>';

// Add the custom text to the beginning of the content
return $custom_text . $content;
}
}