/home/techb158/l2hypotheques.com/wp-content/plugins/polylang/src
NameSizeModeActions
admin/-0755rm
Capabilities/-0755rm
frontend/-0755rm
install/-0755rm
integrations/-0755rm
Model/-0755rm
modules/-0755rm
Options/-0755rm
settings/-0755rm
api.php222910644editdlrm
base.php62590644editdlrm
cache.php24540644editdlrm
class-polylang.php85370644editdlrm
constant-functions.php18530644editdlrm
cookie.php31040644editdlrm
crud-posts.php131290644editdlrm
crud-terms.php89620644editdlrm
default-term.php65950644editdlrm
filter-rest-routes.php51000644editdlrm
filters-links.php57800644editdlrm
filters-sanitization.php33110644editdlrm
filters-widgets-options.php26970644editdlrm
filters.php132480644editdlrm
format-util.php31140644editdlrm
functions.php52640644editdlrm
language-deprecated.php72960644editdlrm
language-factory.php96300644editdlrm
language.php183270644editdlrm
license.php96200644editdlrm
links-abstract-domain.php32400644editdlrm
links-default.php31000644editdlrm
links-directory.php97260644editdlrm
links-domain.php29800644editdlrm
links-model.php66780644editdlrm
links-permalinks.php57530644editdlrm
links-subdomain.php22090644editdlrm
links.php14150644editdlrm
mo.php35040644editdlrm
model.php235080644editdlrm
nav-menu.php46090644editdlrm
olt-manager.php30560644editdlrm
query.php79130644editdlrm
rest-request.php43250644editdlrm
static-pages.php64180644editdlrm
switcher.php112370644editdlrm
term-slug.php50120644editdlrm
translatable-object-with-types-interface.php10550644editdlrm
translatable-object-with-types-trait.php20050644editdlrm
translatable-object.php180420644editdlrm
translatable-objects.php37990644editdlrm
translate-option.php134170644editdlrm
translated-object.php193880644editdlrm
translated-post.php175860644editdlrm
translated-term.php151710644editdlrm
walker-dropdown.php38570644editdlrm
walker-list.php26020644editdlrm
walker.php24340644editdlrm
widget-calendar.php118580644editdlrm
widget-languages.php54660644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/polylang/src/class-polylang.php (8537B)
upgrade() ) { // If the version is too old return; } } } else { // In some edge cases, it's possible that no options were found in the database. $options['version'] = POLYLANG_VERSION; } /** * Filter the model class to use * /!\ this filter is fired *before* the $polylang object is available * * @since 1.5 * * @param string $class either PLL_Model or PLL_Admin_Model */ $class = apply_filters( 'pll_model', PLL_SETTINGS || self::is_wizard() ? 'PLL_Admin_Model' : 'PLL_Model' ); /** @var PLL_Model $model */ $model = new $class( $options ); if ( ! $model->has_languages() ) { /** * Fires when no language has been defined yet * Used to load overridden textdomains * * @since 1.2 */ do_action( 'pll_no_language_defined' ); } $class = ''; if ( PLL_SETTINGS ) { $class = 'PLL_Settings'; } elseif ( PLL_ADMIN ) { $class = 'PLL_Admin'; } elseif ( self::is_rest_request() ) { $class = 'PLL_REST_Request'; } elseif ( $model->has_languages() ) { $class = 'PLL_Frontend'; } /** * Filters the class to use to instantiate the $polylang object * * @since 2.6 * * @param string $class A class name. */ $class = apply_filters( 'pll_context', $class ); if ( ! empty( $class ) ) { /** @phpstan-var class-string $class */ $this->init_context( $class, $model ); } } /** * Polylang initialization. * Setups the Polylang Context, loads the modules and init Polylang. * * @since 3.6 * * @param string $class The class name. * @param PLL_Model $model Instance of PLL_Model. * @return PLL_Base * * @phpstan-param class-string $class * @phpstan-return TPLLClass */ public function init_context( string $class, PLL_Model $model ): PLL_Base { global $polylang; $links_model = $model->get_links_model(); $polylang = new $class( $links_model ); /** * Fires after Polylang's model init. * This is the best place to register a custom table (see `PLL_Model`'s constructor). * /!\ This hook is fired *before* the $polylang object is available. * /!\ The languages are also not available yet. * * @since 3.4 * * @param PLL_Model $model Polylang model. */ do_action( 'pll_model_init', $model ); $model->maybe_create_language_terms(); /** * Fires after the $polylang object is created and before the API is loaded * * @since 2.0 * * @param object $polylang */ do_action_ref_array( 'pll_pre_init', array( &$polylang ) ); // Loads the API require_once POLYLANG_DIR . '/src/api.php'; // Loads the modules. $load_scripts = require POLYLANG_DIR . '/src/modules/module-build.php'; foreach ( $load_scripts as $load_script ) { require_once POLYLANG_DIR . "/src/modules/{$load_script}/load.php"; } $polylang->init(); /** * Fires after the $polylang object and the API is loaded * * @since 1.7 * * @param object $polylang */ do_action_ref_array( 'pll_init', array( &$polylang ) ); return $polylang; } }