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

Foliovision

Main navigation

  • 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, 1 month 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á 2 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 2 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 2 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 2 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 2 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 2 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 2 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 2 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 2 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

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

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 © 2025 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‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!