wphooks.info - set-screen-option

set-screen-option

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/includes/misc.php:
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
				 * Returning false to the filter will skip saving the current option.
				 *
				 * @since 2.8.0
				 *
				 * @see set_screen_options()
				 *
				 * @param bool|int $value  Screen option value. Default false to skip.
				 * @param string   $option The option name.
				 * @param int      $value  The number of rows to use.
				 */
				$value = apply_filters( 'set-screen-option', false, $option, $value );

				if ( false === $value ) {
					return;
				}
				break;
		}

		update_user_meta( $user->ID, $option, $value );