Gutenberg UI has changed
Gutenberg UI has changed
Gutenberg UI has changed
Hide title field of selected post-types on edit pages
What you are describing is not a Custom Post Type and what you want (or think you want) is not a custom post type. To push a CPT to its own separate table you’d have to interrupt core processes in a hundred places, and I am not even sure there are hooks enough to do … Read more
instead of editing the complet content, it’s quicker to find the hook to remove e.g. for the “other role” menu, you can use that : add_action(“wp_loaded”, function () { remove_all_actions(“edit_user_profile”); });
If you’re using classic editor, then add_meta_box() will do the trick. Just make sure you set the context as “side”. With Gutenberg I think you’ll need a Panel component. I’m not too familiar with Gutenberg so I can’t comment more on this.
that’s a great question, Alex! Not exactly an answer to the question, but the following will work: jQuery(‘#menu-settings’).first().pointer( { “content”: “<h3>Pointer header<\/h3>” + “<h4>Pointer subheader<\/h4>” + “<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Levatio igitur vitiorum magna fit in iis, qui habent ad virtutem progressionis aliquantum. Rationis enim perfectio est virtus; Sed ego in … Read more
WordPress Reading Settings
First, use $query->query_vars and not $query->query. Secondly, you should run this conditional check before overriding the corresponding query var: empty( $_REQUEST[‘{VAR}’] ) || !isset($query->query_vars[‘{VAR}’]) where {VAR} corresponds to the query var’s name/key such as orderby. So try this, which worked for me: // Set default `orderby` to ‘registered’. if( empty( $_REQUEST[‘orderby’] ) || !isset($query->query_vars[‘orderby’]) ) … Read more
Add A Tag To A Post Through JavaScript In Gutenberg UI?
Chrome 45 has a rendering bug. There is a ticket open on Chrome’s bug tracker about this issue, hopefully they will fix it soon. In the meantime, here is a workaround to eliminate the issue in Chrome. – Go to chrome://flags/#disable-slimming-paint – Enable the “Disable slimming paint” option. – Ensure that the “Enable slimming paint” … Read more