Pagelines welcome intro

[edit] Please Note

These docs are now deprecated, we have a new Support area located here

(Difference between revisions)
(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 ==
Say 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:
+
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 ==

Latest revision as of 15:26, 3 April 2012

[edit] Filter

pagelines_welcome_intro can be used to over-ride the entire Welcome page of the current theme.

[edit] Usage

NB: my_pagelines_welcome_intro() is only meant as an example, a more appropriate function name should be used in real code.

[edit] 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 __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-filter-example-1.png

[edit] Source File

pagelines_welcome_intro is defined in get_welcome() which is located in admin/class.welcome.php