You appear to be a bot. Output may be restricted
Description
Usage
Tests_Option_Registration::test_register_with_callback();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/option/registration.php
Lines:
1 to 7 of 7
public function test_register_with_callback() { register_setting( 'test_group', 'test_option', array( $this, 'filter_registered_setting' ) ); $filtered = apply_filters( 'sanitize_option_test_option', 'smart', 'test_option', 'smart' ); $this->assertSame( 'S-M-R-T', $filtered ); }