• Resolved iSaumya

    (@isaumya)


    In the settings of this plugin, there is Extra field 1, Extra field 2 and Extra field 3 which the paid templates use. But there are no docs about how can I access them in my own custom template? I tried doing $this->extra_field_1() inside invoice.php but that didn’t work.

    So, it would be great if you can please let me know how can I use these extra fields in my custom template.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @isaumya

    Those extra fields are saved in the options table under the option name wpo_wcpdf_settings_general, you need to filter the output to grab them.

    Thread Starter iSaumya

    (@isaumya)

    @alexmigf can you give an example of how can I do that for let’s say the Extra field 1? So that I can look at your code and fo that for the other fields. It would be really helpful.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @isaumya

    Try this:

    $settings_general = get_option('wpo_wcpdf_settings_general');
    	echo $settings_general['extra_1']['default'];
    	echo $settings_general['extra_2']['default'];
    	echo $settings_general['extra_3']['default'];
    Thread Starter iSaumya

    (@isaumya)

    @alexmigf Thank you so much. I will try these tomorrow morning. Thanks a lot for the awesome support. <3

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to use the Extra Fields in my Custom Template?’ is closed to new replies.