get_purge_attachment_pages(); } /** * Sets whether attachment pages should be purged. * * @param bool $value Whether attachment pages should be purged. * * @return bool Whether or not the value was updated. */ public function set_purge_attachment_pages( $value ) { $value = ( $value === true ) ? 'true' : 'false'; return update_option( self::KEY_PURGE_ATTACHMENT_PAGES, $value, true ); } /** * Sets the database options to the default options. */ public function set_default_options() { $activation_date = $this->get_activation_date(); if ( $activation_date === null ) { $this->set_activation_date( time() ); } $purge_attachment_pages = $this->get_purge_attachment_pages(); if ( $purge_attachment_pages === null ) { $this->set_purge_attachment_pages( true ); } } }