includes/integrations/polylangintegration.php

Functions

jb_polylang_get_languages_codes()

jb_polylang_get_languages_codes() : array

Get default and current locales.

Returns

array

jb_get_predefined_page_id_polylang()

jb_get_predefined_page_id_polylang(int  $page_id) : mixed

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

jb_admin_settings_get_pages_list_polylang() : 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_common_js_variables_polylang()

jb_common_js_variables_polylang(array  $variables) : array

Parameters

array $variables

Returns

array

jb_admin_init_locale_polylang()

jb_admin_init_locale_polylang(string  $locale) : mixed

Parameters

string $locale

Returns

mixed

jb_add_email_templates_column_polylang()

jb_add_email_templates_column_polylang( $columns) : array

Parameters

$columns

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

jb_change_email_templates_locations_polylang(array  $template_locations) : array

Parameters

array $template_locations

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