Hop til hovedindhold

WP Latest Posts Udviklerdokumentation

Denne dokumentation vil hjælpe erfarne udviklere med at tilslutte andre tjenester til vores plugin. Her er alle handlinger og filtre for dette plugin. Hvis du har brug for flere, er du velkommen til at spørge ved at bruge dette dedikerede forum. Tak fordi du bruger vores plugin!

wplp_save_widget

Handling efter WP Latest Posts gemmer indstillinger i databasen.

Parametre:

integer widget ID

Return :

void

I filer:

inc/wplp-widget.inc.php linje 152

debug_information

Tilføj eller rediger fejlfindingsoplysningerne. Plugins eller temaer ønsker måske at introducere deres egne fejlfindingsoplysninger uden at oprette yderligere administratorsider. De kan bruge dette filter til at introducere deres egne sektioner eller tilføje flere data til eksisterende sektioner. Arraynøgler til sektioner tilføjet af kernen har alle præfikset `wp-`, plugins og temaer bør bruge deres egen slug som præfiks, både for at sikre konsistens og for at undgå nøglekollisioner. Bemærk, at arraynøglerne bruges som etiketter til de kopierede data. Alle strenge forventes at være almindelig tekst undtagen $description, der kan indeholde indlejrede HTML-tags (se nedenfor).

Parametre:

array $info Information

Return :

void

I filer:

jufeedback/ju-check-debug-data.php linje 1075

wplp_box_layout_position

Indlægsfelter, der skal vises på hver del af layoutet. Du kan tilføje/fjerne indlægsfelter på enhver layoutdel (øverst, højre, nederst, venstre)

Parametre:

array Default itemsstring Box positioninteger Widget IDstring Theme name

Return :

array

I filer:

inc/wplp-front.inc.php linje 176 inc/wplp-front.inc.php linje 201 inc/wplp-front.inc.php linje 230 inc/wplp-front.inc.php linje 244 inc/wplp-front.inc.php linje 385 inc/wplp-front.inc.php linje 399

wplp_change_thumbnail_link

Filtrer link til miniaturebillede af opslag til frontend-visning

Parametre:

string Thumbnail urlinteger Post IDstring Image size

Return :

string

I filer:

inc/wplp-front.inc.php linje 3140

wplp_custom_posts_get_data

Filter for at ændre Hent Indlæg-resultatet for en brugerdefineret indlægstype

Parametre:

array|object List of postsarray List argumentarray Widget details

Return :

array

I filer:

inc/wplp-front.inc.php linje 956

wplp_front_author_field

Filtrer forfatternavn til frontend-visning.

Parametre:

string Author field

Return :

string

I filer:

inc/wplp-front.inc.php linje 3474

wplp_front_category_field

Filterkategorinavn for frontend-display.

Parametre:

string Category name

Return :

string

I filer:

inc/wplp-front.inc.php linje 3446

wplp_front_date_field

Filterdato for frontend-display

Parametre:

string Date

Return :

string

I filer:

inc/wplp-front.inc.php linje 3500

wplp_front_image_field

Filterbillede vist til frontend-display

Parametre:

string Imagearray Latest posts settings

Return :

string

I filer:

inc/wplp-front.inc.php linje 2753 inc/wplp-front.inc.php linje 3246

wplp_front_readmore_field

Filter læs mere-link til frontend-display.

Parametre:

string Readmore link

Return :

string

I filer:

inc/wplp-front.inc.php linje 3278

wplp_front_text_field

Filtrer hovedtekst til frontend-display

Parametre:

string Post text

Return :

string

I filer:

inc/wplp-front.inc.php linje 2669

wplp_front_title_field

Filtertitel til frontend-display

Parametre:

string Title

Return :

string

I filer:

inc/wplp-front.inc.php linje 2571

wplp_src_category_args

Filterlisteargument for at hente indlæg.

Parametre:

array List argumentarray List settings

Return :

array

I filer:

inc/wplp-front.inc.php linje 675 inc/wplp-front.inc.php linje 710 inc/wplp-front.inc.php linje 744 inc/wplp-front.inc.php linje 781 inc/wplp-front.inc.php linje 842 inc/wplp-front.inc.php linje 940

An Error Occurred: Whoops, looks like something went wrong.

Sorry, there was a problem we could not recover from.

The server returned a "500 - Whoops, looks like something went wrong."

Help me resolve this