Ga naar hoofdinhoud

WP Latest Posts ontwikkelaarsdocumentatie

Deze documentatie helpt ervaren ontwikkelaars om elke andere service met onze plugin te koppelen. Hier zijn alle acties en filters voor deze plugin, als je er meer nodig hebt, voel je vrij om dit te vragen via een toegewijd forum. Bedankt voor het gebruiken van onze plugin!

wplp_save_widget

Actie nadat WP Latest Posts instellingen opslaat in de database.

Parameters :

geheel getal widget-ID

Retour :

void

In bestanden :

inc/wplp-widget.inc.php line 152

debug_information

Voeg debug-informatie toe of wijzig deze.Plugin of thema's willen mogelijk hun eigen debug-informatie toevoegen zonder extra beheerderspagina's te makenzij kunnen dit filter gebruiken om hun eigen secties toe te voegen of meer gegevens aan bestaande secties toe te voegen.Array-sleutels voor secties die door de core zijn toegevoegd, hebben allemaal de prefix `wp-`; plug-ins en thema's moeten hun eigen slug als prefix gebruiken, zowel voor consistentie als om sleutelconflicten te voorkomen.Let op dat de array-sleutels worden gebruikt als labels voor de gekopieerde gegevens.Alle strings worden verwacht als platte tekst, behalve $description die inline HTML-tags kan bevatten (zie hieronder).

Parameters :

array $info Informatie

Retour :

void

In bestanden :

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

wplp_box_layout_position

Berichtvelden om weer te geven in elk deel van de lay-out. Je kunt berichtvelden toevoegen / verwijderen in elk lay-outgedeelte (boven, rechts, onder, links)

Parameters :

array Standaard itemsstring Boxpositiegeheel getal Widget-IDstring Themanaam

Retour :

array

In bestanden :

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

wplp_change_thumbnail_link

Filter post thumbnail link voor front-end weergave

Parameters :

tekenreeks Miniatuur‑urlgeheel getal Bericht‑IDtekenreeks Afbeeldingsgrootte

Retour :

string

In bestanden :

inc/wplp-front.inc.php line 3140

wplp_custom_posts_get_data

Filter om de resultaten van get Posts aan te passen voor een aangepast berichttype

Parameters :

array|object Lijst van berichtenarray Lijstargumentarray Widget‑details

Retour :

array

In bestanden :

inc/wplp-front.inc.php line 956

wplp_front_author_field

Filter auteursnaam voor front-end weergave.

Parameters :

tekenreeks Auteursveld

Retour :

string

In bestanden :

inc/wplp-front.inc.php line 3474

wplp_front_category_field

Filter categorienaam voor front-end weergave.

Parameters :

tekenreeks Categorienaam

Retour :

string

In bestanden :

inc/wplp-front.inc.php line 3446

wplp_front_date_field

Filter datum voor front-end weergave

Parameters :

tekenreeks Datum

Retour :

string

In bestanden :

inc/wplp-front.inc.php line 3500

wplp_front_image_field

Filter afbeelding weergegeven voor front-end weergave

Parameters :

tekenreeks Afbeeldingarray Instellingen voor nieuwste berichten

Retour :

string

In bestanden :

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

wplp_front_readmore_field

Filter lees‑meer‑link voor weergave aan de voorkant.

Parameters :

string Lees‑meer‑link

Retour :

string

In bestanden :

inc/wplp-front.inc.php line 3278

wplp_front_text_field

Filter hoofdtekst voor weergave aan de voorkant

Parameters :

string Berichttekst

Retour :

string

In bestanden :

inc/wplp-front.inc.php line 2669

wplp_front_title_field

Filter titel voor weergave aan de voorkant

Parameters :

string Titel

Retour :

string

In bestanden :

inc/wplp-front.inc.php line 2571

wplp_src_category_args

Filter lijstargument om berichten op te halen.

Parameters :

array Lijstargumentarray Lijstinstellingen

Retour :

array

In bestanden :

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

Duplicate entry 'cc46bdf9d2ec3413199a4ce0a0d95031-nl' for key 'bk24_linguise_urls.hash_translation' (500 Whoops, looks like something went wrong.)

mysqli_sql_exception

HTTP 500 Whoops, looks like something went wrong.

Duplicate entry 'cc46bdf9d2ec3413199a4ce0a0d95031-nl' for key 'bk24_linguise_urls.hash_translation'

Exception

mysqli_sql_exception

Show exception properties
mysqli_sql_exception {#896
  #sqlstate: "23000"
}
  1. foreach ($urls as $translation => $source) {
  2. $elements[] = '("'.mysqli_real_escape_string($this->_database, Request::getInstance()->getLanguage()).'", "'.mysqli_real_escape_string($this->_database, $source).'", "'.mysqli_real_escape_string($this->_database, $translation).'", "'.md5($source).'", "'.md5($translation).'")';
  3. }
  4. $query .= implode(',', $elements);
  5. $query .= ' ON DUPLICATE KEY UPDATE source=VALUES(source), translation=VALUES(translation), hash_source=VALUES(hash_source), hash_translation=VALUES(hash_translation)';
  6. $this->_database->query($query);
  7. }
  8. public function removeUrls($urls)
  9. {
  10. $query = 'DELETE FROM '.mysqli_real_escape_string($this->_database, $this->_database_table_urls).' WHERE (hash_source) IN ';
  1. foreach ($urls as $translation => $source) {
  2. $elements[] = '("'.mysqli_real_escape_string($this->_database, Request::getInstance()->getLanguage()).'", "'.mysqli_real_escape_string($this->_database, $source).'", "'.mysqli_real_escape_string($this->_database, $translation).'", "'.md5($source).'", "'.md5($translation).'")';
  3. }
  4. $query .= implode(',', $elements);
  5. $query .= ' ON DUPLICATE KEY UPDATE source=VALUES(source), translation=VALUES(translation), hash_source=VALUES(hash_source), hash_translation=VALUES(hash_translation)';
  6. $this->_database->query($query);
  7. }
  8. public function removeUrls($urls)
  9. {
  10. $query = 'DELETE FROM '.mysqli_real_escape_string($this->_database, $this->_database_table_urls).' WHERE (hash_source) IN ';
  1. public function saveUrls($urls) {
  2. if (empty($urls)) {
  3. return;
  4. }
  5. return $this->_database->saveUrls($urls);
  6. }
  7. public function removeUrls($urls) {
  8. if (empty($urls)) {
  9. return;
  1. if (isset($result->url_translations)) {
  2. Defer::getInstance()->defer(function() use ($result) {
  3. $new_urls = $result->url_translations;
  4. $new_urls = get_object_vars($new_urls);
  5. Database::getInstance()->saveUrls((array)$new_urls);
  6. });
  7. }
  8. if (isset($result->urls_untranslated)) {
  9. Defer::getInstance()->defer(function() use ($result) {
Translation->Linguise\Script\Core\{closure}()
  1. }
  2. public function finalize()
  3. {
  4. foreach ($this->_actions as $action) {
  5. call_user_func($action['function'], $action['args']);
  6. }
  7. }
  8. }
  1. Helper::prepareDataDir();
  2. // Finalize defer actions on shutdown
  3. // @codeCoverageIgnoreStart
  4. register_shutdown_function(function() {
  5. Defer::getInstance()->finalize();
  6. Database::getInstance()->close();
  7. });
  8. // @codeCoverageIgnoreEnd
  9. }
Processor->Linguise\Script\Core\{closure}()

Stack Trace

mysqli_sql_exception
mysqli_sql_exception:
Duplicate entry 'cc46bdf9d2ec3413199a4ce0a0d95031-nl' for key 'bk24_linguise_urls.hash_translation'

  at /var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Databases/Mysql.php:170
  at mysqli->query()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Databases/Mysql.php:170)
  at Linguise\Script\Core\Databases\Mysql->saveUrls()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Database.php:232)
  at Linguise\Script\Core\Database->saveUrls()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Translation.php:119)
  at Linguise\Script\Core\Translation->Linguise\Script\Core\{closure}()
  at call_user_func()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Defer.php:42)
  at Linguise\Script\Core\Defer->finalize()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Processor.php:31)
  at Linguise\Script\Core\Processor->Linguise\Script\Core\{closure}()