(Created page with "__NOTOC__ == Filter == <tt>pagelines_welcome_intro</tt> can be used to over-ride the entire Welcome page of the current theme. == Usage == <syntaxhighlight><?php add_filter( ...") |
(→Examples) |
||
| Line 14: | Line 14: | ||
== Examples == | == Examples == | ||
| − | + | If you want to remove all of the details from the Welcome page (I have no idea why, but lets say you do for this example), simply put ''<tt>__return_false</tt>'' into the filter, just like this: | |
<syntaxhighlight><?php add_filter( 'pagelines_welcome_intro', '__return_false' ); ?></syntaxhighlight> | <syntaxhighlight><?php add_filter( 'pagelines_welcome_intro', '__return_false' ); ?></syntaxhighlight> | ||
| + | |||
| + | This will leave your Welcome page looking very similar to this, which I strong recommend not doing! This is just an example of what you can do, not necessarily what your should do ... | ||
| + | [[File:Pagelines welcome intro-filter-example-1.png]] | ||
== Source File == | == Source File == | ||
pagelines_welcome_intro can be used to over-ride the entire Welcome page of the current theme.
NB: my_pagelines_welcome_intro() is only meant as an example, a more appropriate function name should be used in real code.
If you want to remove all of the details from the Welcome page (I have no idea why, but lets say you do for this example), simply put __return_false into the filter, just like this:
This will leave your Welcome page looking very similar to this, which I strong recommend not doing! This is just an example of what you can do, not necessarily what your should do ...
pagelines_welcome_intro is defined in get_welcome() which is located in admin/class.welcome.php