• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

How to add phone number on drm text feature

[Solved]

Foliovision › Forums › FV Testimonials › How to … › How to add phone number on drm text feature

  • Mustafa 2 years, 9 months ago

    Hi , I’m wondering if there is way to add phone number on drm text feature, i have lms site and all my users registering in my site by phone number , so when they watching my video i want to display thire phone number

    Another question, in my courses the video background will be white in color , is this will make the drm text not visible? If yes can i change the color ?

    The last question , is there live video demo(not photo) for this feature but i want it not flash , i want the text is always visible

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • Mária Stašová 3 years ago
    Avatar photo

    Hello Mustafa,

    Thank you for reaching out to us!

    FV Player lets you enable/disable various items to be shown in the DRM Text. Sadly, a phone number is not one of them nor do we plan on adding it. It could be discussed as a custom paid development, if you’re interested.

    As for text visibility, the text is not white but gray and there is a opacity setting. A high opacity grey text should be visible and readable on a white background.

    We only have the flash setting demo, as the preset is a global setting for the whole website. Flash is more suitable for a demo, as the always visible preset is easier to imagine. It’s always visible and changes positions in irregular intervals (to make it harder to erase).

    Let me know, if you have any other question.

    Thanks,
    Maria

    Martin 3 years ago

    Hello Mustafa,

    I would add that you can use the fv_player_pro_drm_text filter to alter the information showing in the DRM text: https://foliovision.com/player/developers/api-programming

    So if you are storing it as one of your user profile fields, you can append it there.

    Thanks,
    Martin

    Mustafa 3 years ago

    Thank you for responding, sadly i know there is no phone number in drm text but i want add it due to it’s importance for me

    So when i set the drm text always visible it will be changable in there position irregularly?

    Regarding to page that you add in reply’s “about editing the fields of drm text” , the code shows how to hide the email address not to add any item like phone number , User Id ….

    Mustafa 3 years ago

    update ! i tried to creat custom code for adding the phone number and i want to ask is this code will be worked ?

    function tweak_fv_player_pro_drm_text( $data ) {
      // You can get the current user data using the standard WordPress function call
      $user_data = wp_get_current_user();
    
      // Get the phone number field value from the user meta data
      $phone_number = get_user_meta( $user_data->ID, 'billing_phone', true );
    
      // Add the phone number field value to the $data array
      $data['phone_number'] = $phone_number;
    
      return $data;
    }
    add_filter( 'fv_player_pro_drm_text', 'tweak_fv_player_pro_drm_text' );

    NOTE : phone number field is present in billing_phone meta data

    Martin 3 years ago

    Hello Mustafa,

    that code looks good, but you should be checking if ( ! empty( $user_data->ID ) ) { ... } before calling get_user_meta() to avoid PHP warnings in the logs

    However not all array keys in $data are supported – you can only append this information to one of $data['email'], $data['name'], $data['ip'] or $data['site'].

    Thanks,
    Martin

    Mustafa 3 years ago

    Do you mean Like this ?

    add_filter( 'fv_player_pro_drm_text', 'tweak_fv_player_pro_drm_text' );
    
    function tweak_fv_player_pro_drm_text( $data ) {
        if ( ! empty( $user_data->ID ) ) {
            $user_phone = get_user_meta( $user_data->ID, 'billing_phone', true );
            if ( ! empty( $user_phone ) ) {
                $data['phone_number'] = $user_phone;
            }
        }
        return $data;
    }
    Martin 3 years ago

    Hello Mustafa,

    putting it into $data['phone_number'] won’t do anything. You can only use one of the existing array keys which I mentioned.

    So for example this is how you can add the phone number to the user name:

    $data['name'] .= ' ' . get_user_meta( $user_data->ID, 'billing_phone', true );

    Thanks,
    Martin

    Mustafa 3 years ago

    Thank you for responding so the modified code will be like this right ?

    function tweak_fv_player_pro_drm_text( $data ) {
        $user_data = wp_get_current_user();
        if ( ! empty( $user_data->ID ) ) {
            $phone_number = get_user_meta( $user_data->ID, 'billing_phone', true );
            $data['name'] .= ' ' . $phone_number;
        }
        return $data;
    }
    add_filter( 'fv_player_pro_drm_text', 'tweak_fv_player_pro_drm_text' );
    Martin 3 years ago

    Hello Mustafa,

    yes, that will work.

    Thanks,
    Martin

Viewing 9 replies - 1 through 9 (of 9 total)
Reply To: How to add phone number on drm text feature



Please Sign in or Register to upload files.

Related Posts

  1. Interactive Transcript feature: highlighted text color too bright

    Interactive Transcript feature: highlighted text color too bright

  2. Text color problem

    Text color problem

  3. DRM Text

    DRM Text

Primary Sidebar

How to …

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬