includes/integrations/wpmlintegration.php

Functions

jb_wpml_get_languages_codes()

jb_wpml_get_languages_codes() : array

Returns

array

jb_admin_jobs_listtable_columns_wpml()

jb_admin_jobs_listtable_columns_wpml( $columns,  $base_columns) : array

Parameters

$columns
$base_columns

Returns

array

jb_admin_body_class_wpml()

jb_admin_body_class_wpml( $classes) : string

Parameters

$classes

Returns

string

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_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_admin_settings_get_pages_list_wpml()

jb_admin_settings_get_pages_list_wpml() : array

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_common_js_variables_wpml()

jb_common_js_variables_wpml(array  $variables) : array

Parameters

array $variables

Returns

array

jb_admin_init_locale_wpml()

jb_admin_init_locale_wpml(string  $locale) : mixed

Parameters

string $locale

Returns

mixed

jb_add_email_templates_column_wpml()

jb_add_email_templates_column_wpml( $columns) : array

Parameters

$columns

Returns

array

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_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

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_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_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_wpml()

jb_change_email_templates_locations_wpml(array  $template_locations) : array

Parameters

array $template_locations

Returns

array

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_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