Iframe disappears when author updates page

Note that allowing iframes directly in a post content area can be dangerous, that’s why they’re stripped out for security reasons. Super admins on multisites or administrators on single sites have the unfiltered_html capability, and can insert anything they please into a post content area, but this is dangerous. For example, granting your author this … Read more

Is there a way to identify a user in a custom REST API method? [duplicate]

I spent two days searching for a simple way without adding plugins. first in function.php where you define your api //enqueue the script which will use the api function api_callings_scripts() { wp_enqueue_script(‘score-script’, get_template_directory_uri() . ‘/js/ScoreSaving.js’, [‘jquery’], NULL, TRUE); // Pass nonce to JS. wp_localize_script(‘score-script’, ‘ScoreSettings’, [ ‘nonce’ => wp_create_nonce(‘wp_rest’), ]); } add_action( ‘wp_enqueue_scripts’, ‘api_callings_scripts’ ); … Read more

New user is assigned 2 roles: customer and superadmin

To restore super admin to just the admin username: <?php update_site_option( ‘site_admins’, array(‘admin’) ); ?> Place a PHP file with this line in your /wp-content/mu-plugins/ directory and access any site URL. Once done you can delete the file. Alternative you can edit the site_admins key directly in the wp_sitemeta table (but the first is easier … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)