• Home
  • Tools
    • Color Chart
  • Software
    • Windows tricks
      • Windows 11 Speed Up Tricks
      • Windows Command Prompt CMD
    • Android Phone
      • Android – Dangerous Settings to Turn Off
    • Projects
      • Copy Files
      • Php Autoscript
      • Web Tools
  • Payments
  • Notes
  • System Tips

Notes

ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software |

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ON
PRT
OFF

<- Look Inside Data
Conditions:
Order:
5 Language Operation Title
Keywords
Application
Code Languageid
Show Html
Show Iframe
Make Public
Viewed
Viewed Date
WP Plugin Customizing Putting Your Code Into Wordpress Admin
admin embed iframe
Developer Wordpress
Got it — you want to embed an iFrame inside the WordPress admin area (not just in posts or pages). This is a bit different from front-end embedding because it involves customizing the WordPress dashboard or admin pages.

Here’s how you can do it safely and cleanly:

1. Add an iFrame to a Custom Admin Page
You can create a new admin menu item and load your iFrame inside it.

Php
Copy code
// Add this to your theme's functions.php or a custom plugin
function my_custom_admin_page() {
add_menu_page(
'My iFrame Page', // Page title
'iFrame Page', // Menu title
'manage_options', // Capability
'my-iframe-page', // Menu slug
'my_iframe_page_html', // Callback function
'dashicons-admin-site', // Icon
20 // Position
);
}
add_action('admin_menu', 'my_custom_admin_page');

function my_iframe_page_html() {
?>
{div class="wrap">
{h1>Embedded iFrame{/h1>
{iframe src="https://example.com" width="100%" height="600" style="border:0;">{/iframe>
{/div>
{?php
}
2. Embed iFrame in an Existing Admin Page via Hook
If you want to insert it into an existing settings page, you can hook into the page’s output:

Php
Copy code
function my_iframe_in_settings_page() {
echo '{iframe src="https://example.com" width="100%" height="500" style="border:0;">{/iframe>';
}
add_action('admin_notices', 'my_iframe_in_settings_page');
(Note: This will show at the top of all admin pages — you can conditionally check $_GET['page'] to target specific ones.)

3. Use a Dashboard Widget with iFrame
This is great if you want the iFrame right on the WordPress Dashboard.

Php
Copy code
function my_iframe_dashboard_widget() {
wp_add_dashboard_widget(
'my_iframe_widget',
'My iFrame Widget',
function() {
echo '{iframe src="https://example.com" width="100%" height="400" style="border:0;">{/iframe>';
}
);
}
add_action('wp_dashboard_setup', 'my_iframe_dashboard_widget');
???? Tips for Safety & Compatibility

Only embed trusted URLs to avoid security risks.
Some sites block embedding via X-Frame-Options. If your iFrame doesn’t load, that’s likely the reason.
For better styling, you can enqueue custom CSS for admin pages using admin_enqueue_scripts.
If you want, I can make a version where the iFrame is responsive and styled to match the WordPress admin UI so it feels native. Would you like me to prepare that?

Undo



?php
/*
Plugin Name: Custom Admin PHP Script
Description: Adds a custom admin page that runs a PHP script.
Version: 1.0
Author: Your Name
*/

// Hook into admin menu
add_action('admin_menu', 'cap_add_admin_page');

function cap_add_admin_page() {
add_menu_page(
'Custom PHP Script', // Page title
'Custom Script', // Menu title
'manage_options', // Capability
'custom-php-script', // Menu slug
'cap_render_admin_page', // Callback function
'dashicons-editor-code', // Icon
100 // Position
);
}

// Render the admin page
function cap_render_admin_page() {
if (!current_user_can('manage_options')) {
wp_die('Unauthorized user');
}

echo '{div class="wrap">{h1>Custom PHP Script Output{/h1>';

// Your PHP script logic here
try {
$result = date('Y-m-d H:i:s'); // Example: current date/time
echo "{p>Server time is: {strong>{$result}{/strong>{/p>";
} catch (Exception $e) {
echo '{p style="color:red;">Error: ' . esc_html($e->getMessage()) . '{/p>';
}

echo '{/div>';
}
WP Plugin



0
01/19/2026
WP Plugin Formatting Making Your Shortcode Report Look Good In WP
style.css shortcode report plugin
Shortcode

Add this to your WP custom css


body {overflow:visible;}
table{border-color:black;border-collapse:collapse;mso-padding-alt:0in 5.4pt 0in 5.4pt}
textarea{ font-size:8pt; }
hr.cell_split{color:red;}
tr.alt{background-color:#EEEEEE;}
td{font-family:verdana;font-size:8pt;border:1px solid #000000;}
.navletters {margin:0 7px 0 7px; }
td.code_mod {max-width: 600px;}
div.scroll{overflow:auto;text-align:left;min-width:200px;max-width:600px;max-height:200px; }
input[type="button"],input[type="submit"]{
background-color: #64c9ea;
border: none;
border-radius: 2px;
box-shadow: none;
color: #fff;
cursor: pointer;
padding: 5px 5px;
min-width:10px;margin:5px;}
input[type="text"],input[type="select"] {font-family:verdana;font-size:10pt;margin:5px;padding: 2px 2px;width:70%}
WP Plugin



5
09/09/2023
WP Plugin Plug-in Link Your Admin Inside Of Wordpress Admin
plug-in plug in admin panel link admin
Custom
WP Plugin



725
09/09/2023
WP Plugin Plug-in Keep Colorado Free
wordpress admin plugin shortcode membership form
Custom
WP Plugin



3
12/22/2022
WP Plugin Plug-in Scriptures
show table of records
Custom
WP Plugin



1
12/22/2022

Software Web Design