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

WordPress theme options checkbox default checked state

With the code that you’ve added to your question, you’re adding the HTML ‘checked’ attribute twice, which is probably why things are getting confused. You have it hard-coded as checked=”checked”, but then checked( 1, get_option( ‘theme_custom_option’ ), false ) will write another checked attribute corresponding to the actual value of the option. You should be … Read more

Unable to retrieve get_author_posts_url

Adding answer for reference: get_author_posts_url(get_the_author_meta(‘ID’)) retrieves the value into the PHP code, it doesn’t automatically output it, so you need: echo get_author_posts_url(get_the_author_meta(‘ID’)); To output it into the HTML

Image path in childs theme

Use the ABSPATH constant defined in the wp-config.php: $filename = ABSPATH . ‘wp-content/uploads/webcam/webcamimage.jpg’; You don’t have to use basename() function since it would return only the last component from the full file path, i.e. webcamimage.jpg, and it isn’t what you want to use with filemtime() function.