WordPress classes explained

https://developer.wordpress.org/reference/ is sometimes more useful or other links on that page like Getting Started with WordPress. But you’re better off with running Query Monitor to see what is happening on each page then looking up the concepts individually. I don’t think anyone learns WP in a day. I think they typically focus on a single … Read more

What’s $GLOBALS[‘wp_settings’][‘media’][’embeds’]?

Per the two comments by Rarst and myself, the variable itself is is potentially populated by add_settings_field(), and the related logic is present for historical/backwards compatibility reasons. (There used to be fields in this area.) The related ticket and changeset for reference: http://core.trac.wordpress.org/ticket/21719 http://core.trac.wordpress.org/changeset/21998

Rewriting a core function?

You don’t need to override a core function for that, what you need to do is to hook on the admin_post_thumbnail_html filter. add_filter(‘admin_post_thumbnail_html’, ‘wpse107096_wp_post_thumbnail_html’,10, 2); function wpse107096_wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { global $content_width, $_wp_additional_image_sizes; $post = get_post( $post ); $upload_iframe_src = esc_url( get_upload_iframe_src(‘image’, $post->ID ) ); $set_thumbnail_link = ‘<p class=”hide-if-no-js”><a title=”‘ … Read more