shouldBeSaved() public method

public shouldBeSaved ( $data )
Ejemplo n.º 1
0
 public function shouldBeSaved($data)
 {
     if ($this->keyEquals($data, 'session_tokens') || $this->keyEquals($data, 'nav_menu_recently_edited') || $this->keyEquals($data, 'wporg_favorites')) {
         return false;
     }
     if ($this->keyEndsWith($data, 'dashboard_quick_press_last_post_id')) {
         return false;
     }
     return parent::shouldBeSaved($data);
 }
Ejemplo n.º 2
0
 public function shouldBeSaved($data)
 {
     $ignoredMeta = array('_edit_lock', '_edit_last', '_pingme', '_encloseme');
     return parent::shouldBeSaved($data) && !in_array($data['meta_key'], $ignoredMeta);
 }