Exponent v2.7.2

import_wp_posts.php

Table of Contents

connect()  : database
connect to mysql database
make_expFile()  : array<string|int, mixed>|expFile|int
Return expFile object for given path either an existing or a new expFile
wpautop()  : string
Replaces double line-breaks with paragraph elements.
wp_replace_in_html_tags()  : string
Replace characters or phrases within HTML elements only.
_autop_newline_preservation_helper()  : string
Newline preservation help function for wpautop
wp_html_split()  : array<string|int, string>
Separate HTML elements and comments from the text.
get_html_split_regex()  : string
Retrieve the regular expression for an HTML element.

Functions

make_expFile()

Return expFile object for given path either an existing or a new expFile

make_expFile( $path) : array<string|int, mixed>|expFile|int
Parameters
$path :
Return values
array<string|int, mixed>|expFile|int

wpautop()

Replaces double line-breaks with paragraph elements.

wpautop(string $pee[, bool $br = true ]) : string

A group of regex replaces used to identify text formatted with newlines and replace double line-breaks with HTML paragraph tags. The remaining line-breaks after conversion become <
> tags, unless $br is set to '0' or 'false'.

Parameters
$pee : string

The text which has to be formatted.

$br : bool = true

Optional. If set, this will convert all remaining line-breaks after paragraphing. Default true.

Tags
since
0.71
Return values
string

Text which has been converted into correct paragraph tags.

wp_replace_in_html_tags()

Replace characters or phrases within HTML elements only.

wp_replace_in_html_tags(string $haystack, array<string|int, mixed> $replace_pairs) : string
Parameters
$haystack : string

The text which has to be formatted.

$replace_pairs : array<string|int, mixed>

In the form array('from' => 'to', ...).

Tags
since
4.2.3
Return values
string

The formatted text.

_autop_newline_preservation_helper()

Newline preservation help function for wpautop

_autop_newline_preservation_helper(array<string|int, mixed> $matches) : string
Parameters
$matches : array<string|int, mixed>

preg_replace_callback matches array

Tags
since
3.1.0
access

private

Return values
string

wp_html_split()

Separate HTML elements and comments from the text.

wp_html_split(string $input) : array<string|int, string>
Parameters
$input : string

The text which has to be formatted.

Tags
since
4.2.4
Return values
array<string|int, string>

Array of the formatted text.

get_html_split_regex()

Retrieve the regular expression for an HTML element.

get_html_split_regex() : string
Tags
since
4.4.0
staticvar

string $regex

Return values
string

The regular expression

Search results