front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL

So here’s the way I would approach this. I’d create a custom page in WP called something like ‘Employee Order Screen’ or ‘Company Name Order Manager’. Something like that. Let the users/employees feel like it’s custom or proprietary. Then you want to create a template in either your theme/child theme or in a custom plugin … Read more

Hooking into the HTML header container

Unless a theme provides such a hook there is no way to do this with actions and filters. If a hook is provided then it will be theme specific, no generic WP solution exists. For a full list of the hooks that a theme should implement, see here: https://developer.wordpress.org/themes/advanced-topics/plugin-api-hooks/ At the moment this includes: wp_head() … Read more

Which things should be called with `after_setup_theme`?

after_setup_theme is a wordpress hook which fires after the theme is loaded after_setup_theme runs before init and is generally used to initialize theme settings/options before a user is authenticated. According to the Codex: This is the first action hook available to themes, triggered immediately after the active theme’s functions.

Make multiple URLs behave as home page

Just intercept the hook to determine which template to use. To make all pages act as the homepage: add_filter( ‘template_include’, function($template) { return get_template_directory() . ‘/index.php’; });