s2_word_wrap
PHP5 Constructor Allows dynamic variable setting.
Description
Parameters (1)
- 0. $int (int) =>
80
- The int.
Usage
- To run the hook, copy the example below.
- $int = apply_filters( 's2_word_wrap', $int );
- if ( !empty( $int ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the s2_word_wrap callback
- function filter_s2_word_wrap( $int ) {
- // make filter magic happen here...
- return $int;
- };
- // add the filter
- add_filter( 's2_word_wrap', 'filter_s2_word_wrap', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 's2_word_wrap', 'filter_s2_word_wrap', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /classes/class-s2-core.php
- $this->word_wrap = apply_filters('s2_word_wrap', 80);