_install_glotpress
_install_glotpress
_load_glotpress
_manually_load_plugin
_set_permalink_structure
display_status
esc_translation
gp_abort_main_wp_query
gp_activate_plugin
gp_allow_approving_translations_with_validator_permissions
gp_allow_everyone_to_translate
gp_array_all
gp_array_any
gp_array_flatten
gp_array_get
gp_array_of_array_of_things_to_json
gp_array_of_things_to_json
gp_array_zip
gp_attrs_add_class
gp_breadcrumb
gp_breadcrumb_project
gp_checked
gp_clean_translation_set_cache
gp_clean_translation_sets_cache
gp_cli_register
gp_const_get
gp_const_set
gp_deactivate_plugin
gp_delete_meta
gp_delete_user_permissions
gp_display_disabled_admin_notice
gp_endswith
gp_enqueue_script
gp_enqueue_scripts
gp_enqueue_style
gp_enqueue_styles
gp_entry_actions
gp_error_log_dump
gp_esc_attr_with_entities
gp_footer
gp_generate_rewrite_rules
gp_get
gp_get_format_extensions
gp_get_import_file_format
gp_get_meta
gp_get_sort_by_fields
gp_get_translation_row_classes
gp_glossary_add_suffixes
gp_gmt_strtotime
gp_has_translation_been_updated
gp_head
gp_html_attributes
gp_html_excerpt
gp_in
gp_init
gp_is_ascii_string
gp_is_between
gp_is_between_exclusive
gp_is_empty
gp_is_empty_string
gp_is_int
gp_is_not_empty_string
gp_is_not_null
gp_is_null
gp_is_one_of
gp_is_positive_int
gp_is_starting_and_ending_with_a_word_character
gp_js_focus_on
gp_levenshtein
gp_link
gp_link_get
gp_link_glossary_delete
gp_link_glossary_delete_get
gp_link_glossary_edit
gp_link_glossary_edit_get
gp_link_home
gp_link_home_get
gp_link_project
gp_link_project_delete
gp_link_project_delete_get
gp_link_project_edit
gp_link_project_edit_get
gp_link_project_get
gp_link_set_delete
gp_link_set_delete_get
gp_link_set_edit
gp_link_set_edit_get
gp_link_user
gp_link_with_ays
gp_link_with_ays_get
gp_locales_by_project_dropdown
gp_locales_dropdown
gp_member_get
gp_nav_menu
gp_nav_menu_items
gp_notice
gp_notice_set
gp_object_has_var
gp_pagination
gp_parse_request
gp_plugin_url
gp_populate_notices
gp_post
gp_preferred_sans_serif_style_tag
gp_prepare_translation_textarea
gp_print_scripts
gp_print_styles
gp_project_actions
gp_project_links_from_root
gp_project_names_from_root
gp_project_options_form
gp_projects_dropdown
gp_query_vars
gp_radio_buttons
gp_recurse_project_permissions
gp_recurse_validator_permission
gp_register_default_scripts
gp_register_default_styles
gp_rewrite_rules
gp_route_nonce_field
gp_route_nonce_url
gp_route_translation_set_permissions_to_validator_permissions
gp_run_route
gp_sanitize_meta_key
gp_sanitize_slug
gp_schema_get
gp_select
gp_set_cookie
gp_set_globals
gp_set_is_home_false
gp_set_translations_import_max_memory_limit
gp_startswith
gp_string_similarity
gp_title
gp_tmpl_404
gp_tmpl_filter_args
gp_tmpl_footer
gp_tmpl_get_output
gp_tmpl_header
gp_tmpl_load
gp_translation_row_classes
gp_translations_bulk_actions_toolbar
gp_unsupported_permalink_structure_admin_notice
gp_unsupported_php_version_notice
gp_unsupported_version_admin_notice
gp_update_meta
gp_upgrade_data
gp_upgrade_db
gp_url
gp_url_add_path_and_query
gp_url_base_path
gp_url_current
gp_url_img
gp_url_join
gp_url_path
gp_url_profile
gp_url_project
gp_url_project_locale
gp_url_public_root
gp_wp_profile_options
gp_wp_profile_options_update
is_glotpress
map_glossary_entries_to_translation_originals
prepare_original
references
should_skip_chunk
textareas
things_to_fields
$name
DATE_MYSQL
GP_CACHE_VERSION
GP_DB_VERSION
GP_DIR_TESTDATA
GP_DIR_TESTDATA
GP_INC
GP_LOCALES_PATH
GP_PATH
GP_PHP_REQUIRED_VERSION
GP_PLUGIN_FILE
GP_ROUTING
GP_ROUTING
GP_SCRIPT_DEBUG
GP_TESTS_DIR
GP_TESTS_DIR
GP_TESTS_PATH
GP_TESTS_PERMALINK_STRUCTURE
GP_TESTS_PERMALINK_STRUCTURE
GP_TESTS_PERMALINK_STRUCTURE_WITH_TRAILING_SLASH
GP_TESTS_PERMALINK_STRUCTURE_WITH_TRAILING_SLASH
GP_TMPL_PATH
GP_VERSION
GP_WP_REQUIRED_VERSION
WP_ROOT_DIR
WP_TESTS_CONFIG_PATH
WP_TESTS_DIR
_set_permalink_structure() : string
esc_translation(string $text) : string
Similar to esc_html(), but double encode entities.
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringThe text prior to being escaped.
stringThe text after it has been escaped.gp_abort_main_wp_query(array $sql, \WP_Query $wp_query) : string | false
The following code effectively avoid running the main WP_Query queries by setting values before they are run.
| package | GlotPress |
|---|---|
| link | Original source. |
| since | 1.0.0 |
arrayThe complete SQL query.
\WP_QueryThe WP_Query instance (passed by reference).
stringfalseFalse if GlotPress request, SQL query if not.gp_allow_everyone_to_translate($verdict, $args)
gp_array_any($callback, $array, $arg = null)
gp_array_flatten(array $array) : array
gp_array_get(array $array, string $key, mixed $default = '') : mixed
| package | GlotPress |
|---|
array
stringname of array value
mixedvalue to return if $array[$key] doesn't exist. Default is ''
mixed$array[$key] if exists or $defaultgp_array_of_array_of_things_to_json($array)
gp_array_zip(array $args) : array | false
Previously this function was documented as:
The function works only with numerical arrays.
However this was incorrect, this function would only return an array of arrays with numeric basic indexes, but would process any array whether it was numeric or reference based, using the order in which the array was created as the index value to return.
For example:
$first_array[] = "First"
$first_array[] = "Second"
$first_array[] = "Third"
$second_array[0] = "Fourth"
$second_array[test] = "Fifth"
$second_array[1] = "Sixth"
$result = gp_array_zip( $first_array, $second_array );
Would produce:
$result[0][0] = "First"
$result[0][1] = "Fourth"
$result[1][0] = "Second"
$result[1][1] = "Fifth"
$result[2][0] = "Third"
$result[2][1] = "Sixth"
Instead of either failing (which is probably what should have happened) or something like:
$result[0][0] = "First"
$result[0][1] = "Fourth"
$result[1][0] = "Second"
$result[1][1] = "Sixth"
Or some other random result.
| package | GlotPress |
|---|
arrayArray arguments.
arrayfalseArray on success, false on failure.gp_attrs_add_class($attrs, $class_name)
gp_clean_translation_set_cache(integer $id)
| package | GlotPress |
|---|---|
| global | bool $_wp_suspend_cache_invalidation |
integerTranslation set ID.
gp_clean_translation_sets_cache(integer $project_id)
gp_deactivate_plugin(boolean $network_wide)
| package | GlotPress |
|---|---|
| since | 1.0.0 |
booleanWhether the plugin is deactivated for all sites in the network or just the current site.
gp_display_disabled_admin_notice(string $short_notice, string $long_notice)
.
| package | GlotPress |
|---|---|
| since | 2.0.0 |
stringThe message to display on the first line of the notice beside "GlotPress Disabled".
stringThe message to display below the "GlotPress Disabled" line.
gp_enqueue_script(string $handle)
gp_enqueue_scripts(string|array $handles)
| package | GlotPress |
|---|---|
| since | 2.2.0 |
stringarrayA single script handle to enqueue or an array of enqueue handles to enqueue.
gp_enqueue_style(string $handle)
gp_enqueue_styles(string|array $handles)
| package | GlotPress |
|---|---|
| since | 2.2.0 |
stringarrayA single style handle to enqueue or an array or style handles to enqueue.
gp_entry_actions($seperator = ' • ')
gp_esc_attr_with_entities(string $text) : string
Similar to esc_attr(), but double encode entities.
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringThe text prior to being escaped.
stringThe text after it has been escaped.gp_generate_rewrite_rules(string|boolean $gp_base = false) : array
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringbooleanOptional. The base of all GlotPress URLs.
Defaults to the GP_URL_BASE constant.
arrayRewrite rules that transform the URL structure
to a set of query varsgp_get(string $key, string|array $default = '') : string | array
| package | GlotPress |
|---|
stringName of get value.
stringarrayOptional. Value to return if $_GET[ $key ] doesn't exist. Default empty.
stringarrayValue of `$_GET[ $key ]` if exists or `$default`.gp_get_format_extensions() : array
gp_get_import_file_format(string $selected_format, string $filename) : object | null
Used during import of translations and originals.
| package | GlotPress |
|---|
stringThe format that the user selected on the import page.
stringThe filname that was uploaded by the user.
objectnullA GP_Format child object or null if not found.gp_get_sort_by_fields() : array
gp_get_translation_row_classes(\Translation_Entry $translation) : array
| package | GlotPress |
|---|---|
| since | 2.2.0 |
\Translation_EntryThe translation entry object for the row.
arraygp_glossary_add_suffixes(array $glossary_entries) : array
| package | GlotPress |
|---|
arrayAn array of glossary entries to sort.
arrayThe suffixed entries.gp_gmt_strtotime(string $string) : integer
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringThe string representation of the time to convert.
integergp_has_translation_been_updated(\GP_Translation_Set $translation_set, integer $timestamp = 0) : boolean
| package | GlotPress |
|---|
\GP_Translation_SetTranslation to check
integerOptional; unix timestamp to compare against. Defaults to HTTP_IF_MODIFIED_SINCE if set.
booleangp_html_excerpt($str, $count, $ellipsis = '…')
gp_init()
| package | GlotPress |
|---|---|
| since | 1.0.0 |
gp_is_ascii_string(string $value) : boolean
gp_is_between(string $value, $start, $end) : boolean
| package | GlotPress |
|---|
stringstringstringThe value you want to check.
booleangp_is_between_exclusive(string $value, $start, $end) : boolean
gp_is_empty(string $value) : boolean
gp_is_empty_string(string $value) : boolean
gp_is_int(integer|string $value) : boolean
gp_is_not_empty_string(string $value) : boolean
gp_is_not_null(string $value) : boolean
gp_is_null(string $value) : boolean
gp_is_one_of(string $value, array $list) : boolean
| package | GlotPress |
|---|---|
| since | 3.0.0 |
stringThe value you want to check.
arrayThe list of values you want to check against.
booleangp_is_positive_int(integer $value) : boolean
gp_is_starting_and_ending_with_a_word_character(string $value) : boolean
gp_levenshtein($str1, $str2, $length1, $length2)
gp_link(string $url, string $text, array $attrs = array())
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
stringThe URL to link to.
stringThe text to use for the link.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_get(string $url, string $text, array $attrs = array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringThe URL to link to.
stringThe text to use for the link.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_glossary_delete(\GP_Glossary $glossary, \GP_Translation_Set $set, string $text= '', array $attrs= array())
| package | GlotPress |
|---|---|
| since | 2.0.0 |
| see |
\GP_GlossaryThe glossary to link to.
\GP_Translation_SetThe translation set the glossary is for.
stringOptional. The text to use for the link. Default 'Delete'.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_glossary_delete_get(\GP_Glossary $glossary, \GP_Translation_Set $set, string $text= '', array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 2.0.0 |
\GP_GlossaryThe glossary to link to.
\GP_Translation_SetThe translation set the glossary is for.
stringOptional. The text to use for the link. Default 'Delete'.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_glossary_edit(\GP_Glossary $glossary, \GP_Translation_Set $set, string $text= '', array $attrs= array())
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
\GP_GlossaryThe glossary to link to.
\GP_Translation_SetThe translation set the glossary is for.
stringOptional. The text to use for the link. Default 'Edit'.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_glossary_edit_get(\GP_Glossary $glossary, \GP_Translation_Set $set, string $text= '', array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
\GP_GlossaryThe glossary to link to.
\GP_Translation_SetThe translation set the glossary is for.
stringOptional. The text to use for the link. Default 'Edit'.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_home_get() : string
gp_link_project(\GP_Project|string $project_or_path, string $text, array $attrs = array())
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
\GP_ProjectstringThe project to link to.
stringThe text to use for the link.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_project_delete(\GP_Project $project, string $text= '', array $attrs= array())
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
\GP_ProjectThe project to link to.
stringOptional. The text to use for the link.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_project_delete_get(\GP_Project $project, string $text= '', array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
\GP_ProjectThe project to link to.
stringOptional. The text to use for the link. Default 'Delete'.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_project_edit(\GP_Project $project, string $text= '', array $attrs= array())
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
\GP_ProjectThe project to link to.
stringOptional. The text to use for the link. Default 'Edit'.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_project_edit_get(\GP_Project $project, string $text= '', array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
\GP_ProjectThe project to link to.
stringOptional. The text to use for the link. Default 'Edit'.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_project_get(\GP_Project|string $project_or_path, string $text, array $attrs = array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
\GP_ProjectstringThe project to link to.
stringThe text to use for the link.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_set_delete(\GP_Translation_Set $set, \GP_Project $project, string $text= '', array $attrs= array())
| package | GlotPress |
|---|---|
| since | 2.0.0 |
| see |
\GP_Translation_SetThe translation set to link to.
\GP_ProjectThe project the translation set belongs to.
stringOptional. The text to use for the link. Default 'Delete'.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_set_delete_get(\GP_Translation_Set $set, \GP_Project $project, string $text= '', array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 2.0.0 |
\GP_Translation_SetThe translation set to link to.
\GP_ProjectThe project the translation set belongs to.
stringOptional. The text to use for the link. Default 'Delete'.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_set_edit(\GP_Translation_Set $set, \GP_Project $project, string $text= '', array $attrs= array())
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
\GP_Translation_SetThe translation set to link to.
\GP_ProjectThe project the translation set belongs to.
stringOptional. The text to use for the link. Default 'Edit'.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_set_edit_get(\GP_Translation_Set $set, \GP_Project $project, string $text= '', array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
\GP_Translation_SetThe translation set to link to.
\GP_ProjectThe project the translation set belongs to.
stringOptional. The text to use for the link. Default 'Edit'.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_link_user(\WP_User $user)
gp_link_with_ays(string $url, string $text, array $attrs = array())
Uses the window.confirm() method to display a modal dialog for confirmation.
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
stringThe URL to link to.
stringThe text to use for the link.
arrayOptional. Additional attributes to use to determine the classes for the link.
gp_link_with_ays_get(string $url, string $text, array $attrs = array()) : string
Uses the window.confirm() method to display a modal dialog for confirmation.
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringThe URL to link to.
stringThe text to use for the link.
arrayOptional. Additional attributes to use to determine the classes for the link.
stringThe HTML link.gp_locales_by_project_dropdown(integer $project_id, string $name_and_id, string $selected_slug= null, array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
integerID of a project.
stringName and ID of the select element.
stringSlug of the current selected locale.
arrayExtra attributes.
stringHTML markup for a select element.gp_locales_dropdown(string $name_and_id, string $selected_slug= null, array $attrs= array()) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringName and ID of the select element.
stringSlug of the current selected locale.
arrayExtra attributes.
stringHTML markup for a select element.gp_member_get($object, $key, $default = '')
gp_notice(string $key = 'notice')
gp_notice_set(string $message, string $key = 'notice')
Works best for edit requests, which want to pass error message or notice back to the listing page.
| package | GlotPress |
|---|
stringThe message to be passed.
stringOptional. Key for the message. You can pass several messages under different keys. A key has one message. The default is 'notice'.
gp_object_has_var($object, $var_name)
gp_pagination($page, $per_page, $objects)
gp_parse_request()
a matching page.
| package | GlotPress |
|---|---|
| since | 1.0.0 |
gp_post(string $key, string|array $default = '') : string | array
| package | GlotPress |
|---|
stringName of post value.
stringarrayOptional. Value to return if $_POST[ $key ] doesn't exist. Default empty.
stringarrayValue of `$_POST[ $key ]` if exists or `$default`.gp_preferred_sans_serif_style_tag($locale)
gp_prepare_translation_textarea(string $text) : string
| package | GlotPress |
|---|---|
| since | 3.0.0 |
stringA single style handle to enqueue or an array or style handles to enqueue.
stringThe prepared string for output.gp_print_scripts()
Only output the scripts that GlotPress has registered, otherwise we'd be sending any scripts that the WordPress theme or plugins may have enqueued.
| package | GlotPress |
|---|---|
| since | 2.2.0 |
gp_print_styles()
Only output the styles that GlotPress has registered, otherwise we'd be sending any style that the WordPress theme or plugins may have enqueued.
| package | GlotPress |
|---|---|
| since | 2.2.0 |
gp_project_actions($project, $translation_sets)
gp_project_links_from_root($leaf_project)
gp_project_names_from_root($leaf_project)
gp_projects_dropdown(string $name_and_id, string $selected_project_id= null, array $attrs= array(), array $exclude= array(), array $exclude_no_parent= false) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringName and ID of the select element.
stringThe project id to mark as the currently selected.
arrayExtra attributes.
arrayAn array of project IDs to exclude from the list.
arrayExclude the "No Parent" option from the list of projects.
stringHTML markup for a select element.gp_query_vars($query_vars)
gp_register_default_styles()
| package | GlotPress |
|---|
gp_rewrite_rules()
| package | GlotPress |
|---|---|
| since | 1.0.0 |
gp_route_nonce_field(integer|string $action, boolean $echo = true) : string
| package | GlotPress |
|---|---|
| since | 2.0.0 |
| see |
integerstringAction name.
booleanOptional. Whether to display or return hidden form field. Default true.
stringNonce field HTML markup.gp_route_nonce_url(string $url, integer|string $action) : string
| package | GlotPress |
|---|---|
| since | 2.0.0 |
| see |
stringURL to add nonce action.
integerstringAction name.
stringEscaped URL with nonce action added.gp_sanitize_slug(string $slug) : string
Limits the output to alphanumeric characters, underscore (_), periods (.) and dash (-). Whitespace becomes a dash.
| package | GlotPress |
|---|---|
| since | 2.1.0 |
stringThe string to be sanitized for use as a slug.
stringThe sanitized title.gp_select($name_and_id, $options, $selected_key, $attrs = array())
gp_set_globals($vars)
gp_set_is_home_false(\WP_Query $query)
gp_set_translations_import_max_memory_limit() : string
gp_startswith($haystack, $needle)
gp_tmpl_get_output(mixed $args) : string | false
| package | GlotPress |
|---|---|
| since | 1.0.0 |
| see |
mixedArguments to be passed to gp_tmpl_load().
stringfalse
gp_tmpl_load($template, $args= array(), $template_path= null)
gp_translation_row_classes(\Translation_Entry $translation) : void
| package | GlotPress |
|---|---|
| since | 2.2.0 |
\Translation_EntryThe translation entry object for the row.
gp_unsupported_permalink_structure_admin_notice()
Message is only displayed on the plugin screen.
| package | GlotPress |
|---|---|
| since | 2.0.0 |
gp_unsupported_php_version_notice()
Message is only displayed on the plugin screen.
| package | GlotPress |
|---|---|
| since | 2.0.0 |
gp_unsupported_version_admin_notice()
Message is only displayed on the plugin screen.
| package | GlotPress |
|---|---|
| since | 1.0.0 |
gp_upgrade_data(integer $db_version)
| package | GlotPress |
|---|---|
| since | 1.0.0 |
integerThe current version of the database before the upgrade.
gp_url(mixed $path= '/', array $query= null)
| package | GlotPress |
|---|
mixedstring path or array of path components
arrayassociative array of query arguments (optional)
gp_url_add_path_and_query($base, $path, $query)
gp_url_img(string $file) : string
gp_url_join(mixed $components) : string
Example: gp_url_join( '/project', array( 'wp', 'dev) ) -> '/project/wp/dev'
The function will keep leading and trailing slashes of the whole URL, but won't allow more than consecutive slash inside.
| package | GlotPress |
|---|
mixedArbitrary number of string or path components.
stringURL, built of all the components, separated with /.gp_url_path(string $url = null) : string
| package | GlotPress |
|---|---|
| since | 1.0.0 |
stringOptional. The URL to parse. Defaults to GlotPress URL.
stringPath of the URL. Empty string if no path was parsed.gp_url_project(\GP_Project|string $project_or_path= '', string|array $path= '', array $query= null) : string
A leading double-slash will avoid prepending /projects/ to the path.
| package | GlotPress |
|---|
\GP_ProjectstringProject path or object.
stringarrayAddition path to append to the base path.
arrayOptional. Associative array of query arguments.
stringgp_url_project_locale($project_or_path, $locale, $path= '', $query= null)
gp_url_public_root() : string
is_glotpress() : boolean
map_glossary_entries_to_translation_originals(\GP_Translation $translation, \GP_Glossary $glossary) : \obj
| package | GlotPress |
|---|
\GP_TranslationA GP Translation object.
\GP_GlossaryA GP Glossary object.
\objThe marked up translation entry.prepare_original(string $text) : string
| package | GlotPress |
|---|
stringA single style handle to enqueue or an array or style handles to enqueue.
stringThe prepared string for output.should_skip_chunk(string $chunk) : boolean
textareas($entry, $permissions, $index = 0)
Format class used to support Mac OS X / iOS Translate strings file format.
« More »Class that makes it possible to test protected functions.
« More »GP_TESTS_PERMALINK_STRUCTURE_WITH_TRAILING_SLASH = '/%postname%/'
| package | GlotPress |
|---|
GP_TESTS_PERMALINK_STRUCTURE_WITH_TRAILING_SLASH = '/%postname%/'
| package | GlotPress |
|---|
WP_ROOT_DIR = dirname(dirname(dirname(dirname(dirname(dirname(dirname(__DIR__)))))))
| package | GlotPress |
|---|
WP_TESTS_CONFIG_PATH = dirname(dirname(WP_TESTS_DIR)) . '/wp-tests-config.php'
| package | GlotPress |
|---|