WP_Super_Cache_Rest_Update_Settings::new_direct_page()
add an entry to the cached direct pages list.
Method of the class: WP_Super_Cache_Rest_Update_Settings{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->new_direct_page( $value );
- $value (required)
- -
WP_Super_Cache_Rest_Update_Settings::new_direct_page() WP Super Cache Rest Update Settings::new direct page code WPSCache 1.12.4
protected function new_direct_page( $value ) { global $cached_direct_pages; if ( isset( $_POST[ 'direct_pages' ] ) == false ) { $_POST[ 'direct_pages' ] = $cached_direct_pages; } $_POST[ 'new_direct_page' ] = $value; wpsc_update_direct_pages(); }