Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Sep 5, 2016
1 parent 7e50f8f commit e6cc258
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Generate a fake page on the fly

## Install

`composer require wpbp/language:dev-master`
`composer require wpbp/language:1.0.1`

[composer-php52](https://github.com/composer-php52/composer-php52) supported.

Expand All @@ -16,15 +16,15 @@ Generate a fake page on the fly
// This is like the woocommerce function
function load_content_demo( $original_template ) {
if ( is_singular( 'demo' ) && in_the_loop() ) {
return wpbp_get_template_part( 'content', 'demo', false );
return wpbp_get_template_part( 'plugin-name-folder', 'content', 'demo', false );
} else {
return $original_template;
}
}
add_filter( 'template_include', 'load_content_demo' );

// This is an extended version that search for folder with names based on locales like it_IT
$get_template_email = wpbp_get_template_part( 'header', 'prefix' );
$get_template_email = wpbp_get_template_part( 'plugin-name-folder' , 'header', 'prefix' );

// Look the code of the library
```
Expand Down

0 comments on commit e6cc258

Please sign in to comment.