set_property( 'label', __( 'Facebook Page URL', 'wordpress-seo' ) ); $this->set_property( 'pattern', '^https:\/\/www\.facebook\.com\/([^/]+)\/$' ); } /** * Set adapter * * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on. */ public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) { $adapter->add_yoast_lookup( $this->get_identifier(), 'wpseo_social', 'facebook_site' ); } }