youtube_playlist_cinema.php
/**
        * Sanitize each setting field as needed
        *
        * @param array $input Contains all settings fields as array keys
        */
Sanitize each setting field as needed

@param array $input Contains all settings fields as array keys
Sanitize each setting field as needed @param array $input Contains all settings fields as array keys
public function sanitize( $input )
       {
           $new_input = array();
           if( isset( $input['youtube_api_key'] ) )
               $new_input['youtube_api_key'] = sanitize_text_field( $input['youtube_api_key'] );
           if( isset( $input['youtube_playlist_id'] ) )
               $new_input['youtube_playlist_id'] = sanitize_text_field( $input['youtube_playlist_id'] );
            if( isset( $input['youtube_playlist_name'] ) )
                $new_input['youtube_playlist_name'] = sanitize_text_field( $input['youtube_playlist_name'] );
           return $new_input;
       }
public function sanitize ( $ input ) { $ new_input = array ( ) ; if ( isset ( $ input [ 'youtube_api_key' ] ) ) $ new_input [ 'youtube_api_key' ] = sanitize_text_field ( $ input [ 'youtube_api_key' ] ) ; if ( isset ( $ input [ 'youtube_playlist_id' ] ) ) $ new_input [ 'youtube_playlist_id' ] = sanitize_text_field ( $ input [ 'youtube_playlist_id' ] ) ; if ( isset ( $ input [ 'youtube_playlist_name' ] ) ) $ new_input [ 'youtube_playlist_name' ] = sanitize_text_field ( $ input [ 'youtube_playlist_name' ] ) ; return $ new_input ; }
Sanitize each setting field as needed
Sanitize each setting field as needed