Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'single_job_listing_sidebar', 'jh_child_display_job_details_sidebar', 40 );
- add_action( 'jobhunt_sidebar_args', 'jh_child_job_detail_sidebar_register', 20 );
- function jh_child_display_job_details_sidebar() {
- ?><div id="secondary" class="widget-area sidebar-jobs" role="complementary">
- <div class="widget-area-inner">
- <?php dynamic_sidebar( 'sidebar-job-detail' ); ?>
- </div><!-- /.widget-area-inner -->
- </div><!-- #secondary --><?php
- }
- function jh_child_job_detail_sidebar_register( $sidebar_args ) {
- $sidebar_args['sidebar_jobs'] = array(
- 'name' => esc_html__( 'Job Details Sidebar', 'jobhunt' ),
- 'id' => 'sidebar-job-detail',
- 'description' => esc_html__( 'Widgets added to this region will appear in the jobs details page.', 'jobhunt' ),
- );
- return $sidebar_args;
- }
Add Comment
Please, Sign In to add comment