Skip to content

Commit

Permalink
WordPress integration snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
enclaved committed Jul 11, 2022
1 parent 81a036d commit dffc0ed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,18 @@ Adspect не будет предпринимать никаких действи
Обратная PHP-интеграция удобна для интеграции Adspect в сайты, построенные на WordPress или других подобных CMS
([content management system](https://ru.wikipedia.org/wiki/%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0_%D1%83%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F_%D1%81%D0%BE%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D0%BC%D1%8B%D0%BC)).

WordPress имеет файл `index.php` в корневой папке. Именно в этот файл вам и нужно вставить строчку кода, как было описано выше.
WordPress имеет файл `index.php` в корневой папке. Именно в этот файл вам и нужно вставить строчку кода, как было описано выше:
```php
<?php require __DIR__ . '/filter.php' ?>
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
```
Разместите наш файл `filter.php` рядом в той же корневой папке.

Многие другие CMS на PHP имеют такие же файлы `index.php` в своих корневых папках.
Expand Down

0 comments on commit dffc0ed

Please sign in to comment.