Where can I find a schema of wordpress plugin core architecture?

There is not much to it, really. During the loading of WordPress engine wp-settings.php file is processed. Among other things this files calls wp_get_active_and_valid_plugins() function, that gets list of activated (through admin interface) plugins from active_plugins option (stored in database). For each active plugin its main file (the one holding plugin header) is included and … Read more

How to completely disable a taxonomy archive on the frontend?

s_ha_dum’s answer didn’t work for me, but this did: /** * Completely disable term archives for this taxonomy. * @param string $taxonomy WordPress taxnomy name */ function kill_taxonomy_archive($taxonomy){ add_action(‘pre_get_posts’, function($qry) { if (is_admin()) return; if (is_tax($taxonomy)){ $qry->set_404(); } } ); }

Replace audio/video enclosure with player?

I believe part of what you’re looking for is the WP_Embed class defined in wp-includes/media.php. It implements a framework for automatically replacing urls with the output of embed handlers. I’m afraid you’ll have to do the deeper research yourself (this was apparently introduces in 2.9.0, so documentation might still be thin). I doubt WordPress core … Read more