post_content, 'twp_browser_phone')) { // Add basic styling for the redirect interface wp_add_inline_style('wp-admin', ' .twp-browser-phone-redirect { padding: 20px; border: 1px solid #ddd; border-radius: 5px; background: #f9f9f9; text-align: center; margin: 20px 0; } .twp-browser-phone-redirect h3 { margin-top: 0; color: #333; } .twp-browser-phone-redirect p { margin-bottom: 15px; } .twp-error { padding: 10px; border: 1px solid #dc3232; border-radius: 3px; background: #fbeaea; color: #dc3232; margin: 10px 0; } '); } } /** * Browser phone shortcode handler * Redirects users to the admin browser phone page */ public static function browser_phone_shortcode($atts) { // Check if user is logged in if (!is_user_logged_in()) { return '
You must be logged in to access the browser phone.
'; } // Check if user has permission if (!current_user_can('twp_access_browser_phone') && !current_user_can('manage_options')) { return '
You don\'t have permission to access the browser phone.
'; } // Parse shortcode attributes $atts = shortcode_atts(array( 'title' => 'Browser Phone', 'button_text' => 'Access Browser Phone', 'target' => '_blank' ), $atts, 'twp_browser_phone'); // Generate admin URL for browser phone page $admin_url = admin_url('admin.php?page=twilio-wp-browser-phone'); $target = ($atts['target'] === '_blank') ? 'target="_blank"' : ''; ob_start(); ?>

The browser phone interface has been moved to the WordPress admin area for enhanced security and functionality.

class="button button-primary">