Skip to content

Instantly share code, notes, and snippets.

@ernilambar
Created February 11, 2024 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ernilambar/e8d8dce57e58b37f714eaf8941412356 to your computer and use it in GitHub Desktop.
Save ernilambar/e8d8dce57e58b37f714eaf8941412356 to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Foo Single
* Plugin URI: https://example.com
* Description: Custom plugin.
* Version: 1.0.0
* Author: Nilambar Sharma
* Author URI: https://asdf.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
add_action(
'init',
function () {
$number = mt_rand( 10, 100 );
echo $number;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment