changed all instances of fipf to cipf
This commit is contained in:
@@ -13,18 +13,18 @@ if (!defined('ABSPATH')) {
|
||||
/*
|
||||
* menu plugin
|
||||
*/
|
||||
function fipfcard_plugin_menu()
|
||||
function cipfcard_plugin_menu()
|
||||
{
|
||||
add_menu_page
|
||||
(
|
||||
'fipf_card', // webpage title
|
||||
'fipf_card', // menu title
|
||||
'cipf_card', // webpage title
|
||||
'cipf_card', // menu title
|
||||
'manage_options', // capability
|
||||
'fipfcard-plugin', // menu_slug
|
||||
'fipfcard_plugin_content' // callback function to display page content
|
||||
'cipfcard-plugin', // menu_slug
|
||||
'cipfcard_plugin_content' // callback function to display page content
|
||||
);
|
||||
}
|
||||
add_action('admin_menu', 'fipfcard_plugin_menu');
|
||||
add_action('admin_menu', 'cipfcard_plugin_menu');
|
||||
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ if (!defined('ABSPATH')) {
|
||||
die('You can not access this file!');
|
||||
}
|
||||
|
||||
function fipfcard_plugin_content() {
|
||||
$fipfcard = new PLGNTLS_class();
|
||||
function cipfcard_plugin_content() {
|
||||
$cipfcard = new PLGNTLS_class();
|
||||
|
||||
$my_css = '
|
||||
#mytext {
|
||||
@@ -46,7 +46,7 @@ function fipfcard_plugin_content() {
|
||||
background-color: lightgreen;
|
||||
}
|
||||
';
|
||||
echo $fipfcard->add_to_front( array(
|
||||
echo $cipfcard->add_to_front( array(
|
||||
array("js/menu/example_menu.js", 'type'=>'module'),
|
||||
"css/menu/menu.css",
|
||||
"PLGNTLS_menu_css" => array('css'=>$my_css),
|
||||
@@ -66,17 +66,17 @@ ajax
|
||||
- to access the content of the data object properties of the ajax call :
|
||||
use $_POST['property_name']
|
||||
*/
|
||||
function fipfcard_menu_fetch_handler()
|
||||
function cipfcard_menu_fetch_handler()
|
||||
{
|
||||
return new WP_REST_Response('hello', 200);
|
||||
}
|
||||
function fipfcard_menu_endpoint()
|
||||
function cipfcard_menu_endpoint()
|
||||
{
|
||||
register_rest_route('plgntls', '/get_data', array(
|
||||
'methods' => 'POST',
|
||||
'callback' => 'fipfcard_menu_fetch_handler',
|
||||
'callback' => 'cipfcard_menu_fetch_handler',
|
||||
));
|
||||
};
|
||||
add_action('rest_api_init', 'fipfcard_menu_endpoint');
|
||||
add_action('rest_api_init', 'cipfcard_menu_endpoint');
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user