Port over, may not work
All checks were successful
Build & Release WordPress Plugin / build (push) Successful in 33s

This commit is contained in:
j 2025-06-17 16:12:00 +10:00
parent 8635773bdd
commit fa0b438a95
2 changed files with 117 additions and 0 deletions

27
src/my-first-plugin.php Normal file
View file

@ -0,0 +1,27 @@
<?php
/**
* Plugin Name: My First Plugin
* Plugin URI: https://repobase.net/j/workflow-sample-wordpress-plugin
* Description: A simple "Hello World" plugin for WordPress.
* Version: 1.0.0
* Author: ChatGPT
* Author URI: https://repobase.net/j/workflow-sample-wordpress-plugin
* License: GPL2
*/
// Prevent direct access
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Hook into the admin dashboard
add_action( 'admin_notices', 'mfp_show_admin_notice' );
function mfp_show_admin_notice() {
?>
<div class="notice notice-success is-dismissible">
<p><?php _e( 'Hello World from My First Plugin!', 'my-first-plugin' ); ?></p>
</div>
<?php
}