Results 1 to 2 of 2

Thread: How do I add custom jobroller options?

  1. #1
    Thread Starter
    jemcapon's Avatar
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    83
    Thanks
    4
    Thanked 3 Times in 3 Posts

    How do I add custom jobroller options?

    I have been able to easily add a custom setting to the payments tab with the following code:

    PHP Code:
    class JR_Boosted_Listings_Text_Tab {

        private static 
    $page;

        static function 
    init$page ) {

            
    self::$page $page;

            
    $fields = array(
                array(
                    
    'title' => 'Text',
                    
    'type' => 'textarea',
                    
    'name' => 'boosted_listing_text',
                    
    'desc' => 'Displayed below the boosted listings checkbox on the plan selection step of job submission process'
                
    ),
            );

            
    $page->tab_sections['general']['boosted_listings_text'] = array(
                
    'title' => __'Boosted Listings Text'APP_TD ),
                
    'fields' => $fields,
            );

        }

    }
    add_action'tabs_payments_page_app-payments-settings', array( 'JR_Boosted_Listings_Text_Tab''init' ), 13 ); 
    But the only way I have been able to get the custom option to save is to add:

    PHP Code:
        'boosted_listing_text' => 'default listing test'
    To the settings array in options.php.

    I really don't like adding code to the parent theme, so how I update the default settings array from a child theme?

  2. #2
    Thread Starter
    jemcapon's Avatar
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    83
    Thanks
    4
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Jobroller: resume subscriptions, payment options
    By yourpoc in forum Help Using JobRoller
    Replies: 1
    Last Post: December 10th, 2013, 10:06 AM
  2. Jomark Jobroller: resume subscriptions, payment options
    By yourpoc in forum JobRoller General Discussion
    Replies: 1
    Last Post: December 10th, 2013, 10:06 AM
  3. Jomark Custom Pricing options such as job packs
    By sssdornier in forum Report JobRoller Bugs
    Replies: 6
    Last Post: December 20th, 2012, 06:09 PM