Give Editor Access to Custom Theme Options

The problem is that the default Editor role does not have enough capabilities to change theme options. You are allowing users with ‘moderate_comments’ capabilities to view the page. That in itself is not enough. When the user attempts to update, it fails because the user does not have the proper capabilities, hence the ‘Cheatin’ uh?’ … Read more

Open editor post in a popup

You need to tell get_edit_post_link to not use the ampersands as specified in the codex. Try this instead: var pop = window.open(‘ <?php echo get_edit_post_link(get_the_ID(), ”); ?> ‘, ‘_blank’, ‘screenX=200,screenY=200,width=1000,height=600’);

Using custom HTML tags to WordPress [closed]

[*] You can expand list of KSES allowed tags (and their attributes): add_filter(‘wp_kses_allowed_html’, ‘wpse_283385_blocktip_tag’); function wpse_283385_blocktip_tag($allowed_tags) { $allowed_tags[‘blocktip’] = array( ‘name’ => true, ‘id’ => true, ‘class’ => true, ‘style’ => true ); return $allowed_tags; } add_filter(‘tiny_mce_before_init’, ‘wpse_283385_blocktip_tag_tinymce’); function wpse_283385_blocktip_tag_tinymce($init) { $tags=”blocktip[*]”; if ( isset( $init[‘extended_valid_elements’] ) ) { $init[‘extended_valid_elements’].= ‘,’.$tags; } else { $init[‘extended_valid_elements’] … Read more

Disable File Editing function

There is no “Enable” button I’m aware of, but if you want to fully disable file editing, then that’s easy. https://codex.wordpress.org/Hardening_WordPress#Disable_File_Editing Add this line to your wp-config.php file: define(‘DISALLOW_FILE_EDIT’, true); No more file editing in WordPress.

Disable Plugin with one button

If you have FTP access (or File Manager on your hosting place), just rename the plugin’s folder (in wp-content\plugins). That will deactivate the plugin, but won’t remove the settings. Once you fix things, you can put the plugin’s folder name back to the original name. Then reactivate it. (This is a great way to find … Read more

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