How do I remove or disable “Or link to existing content” in “insert link” dialogue?

We could hook into the after_wp_tiny_mce with some CSS to hide it, if the wplink editor plugin is loaded. Example: add_action( ‘after_wp_tiny_mce’, function( $settings ) { // Check for the ‘wplink’ editor plugin if( isset( $settings[‘content’][‘plugins’] ) && false !== strpos( $settings[‘content’][‘plugins’], ‘wplink’ ) ) echo ‘<style> #link-selector > .howto, #link-selector > #search-panel { display:none; … Read more

Custom function for “Submit for Review” hook

You need Post Status Transitions actions function notify_me_for_pending( $post ) { $user_info = get_userdata ($post->post_author); $strTo = array (’[email protected]’); $strSubject=”Fstoppers: ” . $user_info->user_nicename . ‘ submitted a post’; $strMessage=””” . $post->post_title . ‘” by ‘ . $user_info->user_nicename . ‘ was submitted a post for review at ‘ . wp_get_shortlink ($post->ID) . ‘&preview=true. Please proof.’; wp_mail( … Read more

Showing only certain buttons on tinymice content editor

Hi @José Pablo Orozco Marín: If you are looking for how to code the custom buttons yourself, WordPress’ Codex has a great example that shows you how: http://codex.wordpress.org/TinyMCE_Custom_Buttons The example is complicated because it shows you how to add your own controls but if you are using the standard buttons you don’t need to make … Read more

Making the Post/Page Content Editor Box Bigger?

You have a couple of options. First, you can always click on the bottom right corner of the post edit box and drag to resize: However, you can also make it so that the post box is larger by default. Go to Settings > Writing, and change the value for size of the post box:

line break are not working when editing a post [closed]

You’ve stumbled across a ‘hidden’ feature of WordPress and TinyMCE (the visual editor) it has a problem with line breaks and strips them out. Try either of these two plugins: http://wordpress.org/extend/plugins/line-break-shortcode/ http://wordpress.org/extend/plugins/simple-breaks/

Give editors access to particular plugin – turn “admin.php” into “edit.php”

As I mentioned, it’s not the best practice to edit the plugin’s source codes because this will be overwritten if you were to get the latest update from the author. Nonetheless, to allow the Business Opening Hours plugin to show for your Editors open /business-opening-hours/bizo-hours.php and tweak the following lines. At the time of this … Read more

Retrieving and Storing Images Linked from Other Domains on Local Server?

@Jan: The cache images plugin: http://blog.milandinic.com/wordpress/plugins/cache-images/ helped me with this, it does not on demand replace the links but rather goes through all links but basically does the same. One note on this: when I ran it on a small blog it worked pretty well. On another blog (http://edward.de.leau.net) it did a lot of posts … Read more

How to remove specific panels in the editor (Gutenberg) when editing a block (via right panel)?

Removing specific panels or features for a block is done on a per block basis using various hooks (https://github.com/WordPress/gutenberg/issues/15450#issuecomment-635255936) Update (August 2021) Removing specific panels (that would allow for customization of a block) can now be done through the theme.json aka global settings and styles which allows you to customize settings (colors, typography, etc) for … Read more