some more little codes for restrictions and registrations
This commit is contained in:
@@ -24,71 +24,29 @@ include_once( plugin_dir_path(__FILE__) . '/utils/plgntls_class.php');
|
||||
PLGNTLS_class::set_root_dir( plugin_dir_path(__FILE__), plugin_dir_url(__FILE__) );
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* general inclusions
|
||||
*/
|
||||
include_once(PLGNTLS_class::get_path() . '/utils/globals.php');
|
||||
include_once(PLGNTLS_class::get_path() . '/utils/console_log.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/utils/globals.php');
|
||||
|
||||
include_once(PLGNTLS_class::get_path() . '/php/paypal/paypal.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'utils/console_log.php');
|
||||
|
||||
include_once(PLGNTLS_class::get_path() . '/php/register/partenaires.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/admin_menu/example_menu.php');
|
||||
|
||||
include_once(PLGNTLS_class::get_path() . 'php/paypal/paypal.php');
|
||||
|
||||
|
||||
/*
|
||||
* test the class PLGNTLS
|
||||
*/
|
||||
add_shortcode('fipfcard_plugin', 'fipfcard_test_class_tools');
|
||||
//include_once(PLGNTLS_class::get_path() . '/php/user_infos.php');
|
||||
//include_once(PLGNTLS_class::get_path() . '/php/hide_admin.php');
|
||||
//include_once(PLGNTLS_class::get_path() . '/php/menus.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/register_partenaires.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/redirections.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/author_restriction.php');
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
function custom_frontend_posting_form() {
|
||||
$my_image = the_field('image_ratio');
|
||||
error_log("my_image");
|
||||
error_log(json_encode($my_image));
|
||||
return $my_image;
|
||||
}
|
||||
add_shortcode('custom_frontend_posting_form', 'custom_frontend_posting_form');
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* menu plugin
|
||||
*/
|
||||
include_once(PLGNTLS_class::get_path() . '/php/menu/example_menu.php');
|
||||
function fipfcard_plugin_menu()
|
||||
{
|
||||
add_menu_page
|
||||
(
|
||||
'fipf_card', // webpage title
|
||||
'fipf_card', // menu title
|
||||
'manage_options', // capability
|
||||
'fipfcard-plugin', // menu_slug
|
||||
'fipfcard_plugin_content' // callback function to display page content
|
||||
);
|
||||
}
|
||||
add_action('admin_menu', 'fipfcard_plugin_menu');
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user