\

Namespaces

jb

Classes

JB Main JB Class
JB_Functions Class JB_Functions

Functions

JB()

JB() : \JB

Function for calling JB methods and variables

Returns

\JB

jb_add_email_templates_column_polylang()

jb_add_email_templates_column_polylang( $columns) : array

Parameters

$columns

Returns

array

jb_add_email_templates_column_wpml()

jb_add_email_templates_column_wpml( $columns) : array

Parameters

$columns

Returns

array

jb_admin_body_class_wpml()

jb_admin_body_class_wpml( $classes) : string

Parameters

$classes

Returns

string

jb_admin_init_locale_polylang()

jb_admin_init_locale_polylang(string  $locale) : mixed

Parameters

string $locale

Returns

mixed

jb_admin_init_locale_wpml()

jb_admin_init_locale_wpml(string  $locale) : mixed

Parameters

string $locale

Returns

mixed

jb_admin_jobs_listtable_columns_wpml()

jb_admin_jobs_listtable_columns_wpml( $columns,  $base_columns) : array

Parameters

$columns
$base_columns

Returns

array

jb_admin_settings_get_pages_list_polylang()

jb_admin_settings_get_pages_list_polylang() : array

Returns

array

jb_admin_settings_get_pages_list_wpml()

jb_admin_settings_get_pages_list_wpml() : array

Returns

array

jb_admin_settings_pages_list_value_polylang()

jb_admin_settings_pages_list_value_polylang(bool|array  $pre_result, int  $page_id) : array

Parameters

bool|array $pre_result
int $page_id

Returns

array

jb_admin_settings_pages_list_value_wpml()

jb_admin_settings_pages_list_value_wpml(bool  $pre_result, int  $page_id) : array

Parameters

bool $pre_result
int $page_id

Returns

array

jb_before_email_notification_sending_polylang()

jb_before_email_notification_sending_polylang(mixed  $email, mixed  $template, mixed  $args) : mixed

Parameters

mixed $email
mixed $template
mixed $args

Returns

mixed

jb_before_email_notification_sending_wpml()

jb_before_email_notification_sending_wpml(mixed  $email, mixed  $template, mixed  $args) : mixed

Parameters

mixed $email
mixed $template
mixed $args

Returns

mixed

jb_change_email_subject_polylang()

jb_change_email_subject_polylang(string  $subject, string  $template, string  $email) : string

Parameters

string $subject
string $template
string $email

Returns

string

jb_change_email_subject_wpml()

jb_change_email_subject_wpml(string  $subject, string  $template, string  $email) : string

Parameters

string $subject
string $template
string $email

Returns

string

jb_change_email_templates_locations_polylang()

jb_change_email_templates_locations_polylang(array  $template_locations) : array

Parameters

array $template_locations

Returns

array

jb_change_email_templates_locations_wpml()

jb_change_email_templates_locations_wpml(array  $template_locations) : array

Parameters

array $template_locations

Returns

array

jb_check_for_reminder_expired_jobs_job_ids_polylang()

jb_check_for_reminder_expired_jobs_job_ids_polylang(mixed  $job_ids, mixed  $args) : mixed

Parameters

mixed $job_ids
mixed $args

Returns

mixed

jb_check_for_reminder_expired_jobs_job_ids_wpml()

jb_check_for_reminder_expired_jobs_job_ids_wpml(mixed  $job_ids, mixed  $args) : mixed

Parameters

mixed $job_ids
mixed $args

Returns

mixed

jb_common_js_variables_polylang()

jb_common_js_variables_polylang(array  $variables) : array

Parameters

array $variables

Returns

array

jb_common_js_variables_translatepress()

jb_common_js_variables_translatepress(array  $variables) : array

Parameters

array $variables

Returns

array

jb_common_js_variables_weglot()

jb_common_js_variables_weglot(array  $variables) : array

Parameters

array $variables

Throws

\Exception

Returns

array

jb_common_js_variables_wpml()

jb_common_js_variables_wpml(array  $variables) : array

Parameters

array $variables

Returns

array

jb_emails_list_table_custom_column_content_polylang()

jb_emails_list_table_custom_column_content_polylang(mixed  $content, mixed  $item, mixed  $column_name) : mixed

Parameters

mixed $content
mixed $item
mixed $column_name

Returns

mixed

jb_emails_list_table_custom_column_content_wpml()

jb_emails_list_table_custom_column_content_wpml( $content,  $item,  $column_name) : string

Parameters

$content
$item
$column_name

Returns

string

jb_get_predefined_page_id_polylang()

jb_get_predefined_page_id_polylang(int  $page_id) : mixed

Parameters

int $page_id

Returns

mixed

jb_get_predefined_page_id_translatepress()

jb_get_predefined_page_id_translatepress(int  $page_id) : mixed

Parameters

int $page_id

Returns

mixed

jb_get_predefined_page_id_weglot()

jb_get_predefined_page_id_weglot(int  $page_id) : int

Parameters

int $page_id

Returns

int

jb_get_predefined_page_id_wpml()

jb_get_predefined_page_id_wpml(int  $page_id) : mixed

Get predefined page translation for current language

Parameters

int $page_id

Returns

mixed

jb_is_predefined_page_polylang()

jb_is_predefined_page_polylang(bool  $condition, \WP_Post  $post, int  $predefined_page_id) : bool

Parameters

bool $condition
\WP_Post $post
int $predefined_page_id

Returns

bool

jb_is_predefined_page_wpml()

jb_is_predefined_page_wpml(bool  $condition, \WP_Post  $post, int  $predefined_page_id) : bool

Parameters

bool $condition
\WP_Post $post
int $predefined_page_id

Returns

bool

jb_polylang_get_languages_codes()

jb_polylang_get_languages_codes() : array

Get default and current locales.

Returns

array

jb_polylang_get_status_html()

jb_polylang_get_status_html( $template,  $code) : string

Parameters

$template
$code

Returns

string

jb_pre_template_locations_polylang()

jb_pre_template_locations_polylang(mixed  $template_locations, mixed  $template_name, mixed  $module, mixed  $template_path) : mixed

Parameters

mixed $template_locations
mixed $template_name
mixed $module
mixed $template_path

Returns

mixed

jb_pre_template_locations_translatepress()

jb_pre_template_locations_translatepress(array  $template_locations, string  $template_name, string  $module, string  $template_path) : array

Parameters

array $template_locations
string $template_name
string $module
string $template_path

Returns

array

jb_pre_template_locations_weglot()

jb_pre_template_locations_weglot(array  $template_locations, string  $template_name, string  $module, string  $template_path) : array

Parameters

array $template_locations
string $template_name
string $module
string $template_path

Throws

\Exception

Returns

array

jb_pre_template_locations_wpml()

jb_pre_template_locations_wpml(array  $template_locations, string  $template_name, string  $module, string  $template_path) : array

Parameters

array $template_locations
string $template_name
string $module
string $template_path

Returns

array

jb_settings_change_subject_field_polylang()

jb_settings_change_subject_field_polylang(array  $section_fields, string  $email_key) : array

Adding endings to the "Subject Line" field, depending on the language.

Parameters

array $section_fields
string $email_key

Returns

array

jb_settings_change_subject_field_wpml()

jb_settings_change_subject_field_wpml(array  $section_fields, string  $email_key) : array

Adding endings to the "Subject Line" field, depending on the language.

Parameters

array $section_fields
string $email_key

Returns

array

Examples

job_approved_sub_de_DE

                                                

jb_translatepress_get_languages_codes()

jb_translatepress_get_languages_codes() : array

Get default and current locales.

Returns

array

jb_weglot_get_languages_codes()

jb_weglot_get_languages_codes() : array

Throws

\Exception

Returns

array

jb_wpml_get_languages_codes()

jb_wpml_get_languages_codes() : array

Returns

array

jb_wpml_get_status_html()

jb_wpml_get_status_html( $template,  $code) : string

Parameters

$template
$code

Returns

string

jb_wpml_render_status_icon()

jb_wpml_render_status_icon( $link,  $text,  $img) : string

Parameters

$link
$text
$img

Returns

string