Use locate_template()
if you want to use a file from your theme. include()
or require()
works too.
Sample code, tested:
add_filter( 'login_message', 'wpse_73619_include_login_message' );
function wpse_73619_include_login_message()
{
print '<pre>';
locate_template( 'style.css', TRUE );
print '</pre>';
}
Related Posts:
- Logout/login redirect CSS issue
- How to change login labels
- Removing wp_login_viewport_meta
- error at login page in wordpress
- Show errormessages on wrong username/password on custom loginform?
- Unable to login after registration
- Re-style Login Form Whilst Keeping CSS Separate from Frontend CSS
- How to change form action of wp-login page with a function
- True email confirmation for registration (keeping unvalidated users from user table)
- Redirect after login to current URL
- disable WP_error: authentication_failed
- What’s the difference between esc_html, esc_attr, esc_html_e, and so on?
- Is it possible to rename a post format?
- How to paginate the get_users function?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- How to add classes to images based on their categories?
- How can I remove the title “leave a reply” in the comment box in twentyeleven?
- Child theme – overriding add_image_size by a child theme [duplicate]
- Check if has any sidebar active on current page
- Compare post levels and user levels wishlist member
- Change ul class=”children” for wp_list_pages?
- Target a certain page within wordpress backend (admin) i.e. Pages > About
- Set default options for inserting media
- Remove tag on my RSS Feed
- Automated mark posts as featured every day
- Session is not starting
- Child Theme Not Overriding Parent Theme
- Hide WYSIWYG editor on certain templates
- Trouble using antispambot()
- Polylang: pll_e() & pll__() on functions.php, doesn’t work
- Disable shortlinks like ?p=1234 to prevent scraping
- Post Pagination Showing Same Posts Every Page
- WP_Remote_Get Not working
- Debugging with functions.php
- How to automatically remove links from WordPress Biographical Info?
- Php function 301 redirect
- Selective Product Category for Carousel
- Get the link for RSS item to display in feed
- Function only on a specific page
- Logout Shortcode URL
- Add Custom Background Properties to Customizer
- What is the correct way of updating wordpress options
- WordPress functions.php – Execute plugin specific user online
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- Function that outputs second theme url
- error in getting post id
- Trying to register script in footer
- register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead
- Require file in functions from theme directory using PHP
- Shotcode argument issues
- Remove Custuomize Sections
- (Woocommerce) Order by price when entering specific category
- Exclude category from shortcode
- Adding an option to a shortcode
- Get urls of images in a gallery?
- Undefined variable error in new function
- How can I show immediate and/or parents in a title?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Best way to disable sidebars on posts (only)?
- Passing Jquery value to WordPress function
- How to override this theme function in child theme
- Unable to add extra elements to the main navi (wp_nav_menu_items)
- Internet Explorer opens links to .msi files as text in a new tab
- Enqueueing scripts selectively & activation where needed
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- A better way to get stats
- Get URLs for AJAX Filter Checkboxes WordPress
- Using One Function To Create Two Different Shortcodes
- How to Not Show posts on Category page?
- Is it possible to load recaptcha script only in url with fragment identifier (#)?
- page shows short code not output
- Scheduled post delete – can’t pass the cron arguments
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- Multiple Notifications SetInterval
- Child Theme not loading multiple stylesheets
- Show number of sold products but be first for less than 2
- How To Show Shortcodes In WordPress Custom Fields?
- Class::$template_dir_path=get_template_directory();
- Post date on Custom field
- Fatal error: Call to undefined function add_action() – an untouched problem
- Author info does not show up when author has no posts
- How to wp_enqueue_script with html?
- Add custom class to all URLs on entire site
- Is it possible to change parameters of Parent theme function in the Child theme?
- Error function main() is a non-object to construct my Ajax.php
- Unregistering custom tinymce plugin?
- Combining wp_current_user() and a variable
- Init hook for header send
- java script error Uncaught SyntaxError: Unexpected token ILLEGAL
- Gravity Forms After Submission – GFFormsModel::update_lead_field_value?
- site_url is not honoring scheme
- new to javascript – using in instead of functions.php, not loading correctly
- Remove Disqus JavaScript from homepage
- User’s Comments Number: Storing it in a meta field for different uses
- Show one post per author and order by custom field
- Text before price on WooCom
- Warning: call_user_func_array() expects parameter 1 to be a valid callback
- Change Post status based on custom field date +1 day
- How to store page-{id}.php templates in custom folder