Skip to content

Releases: SebKay/oop-wp

v3.0.0

13 Apr 08:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.1.0...3.0.0

v2.1.0

30 Jul 09:10
Compare
Choose a tag to compare

This release includes:

Changes to OOPWP\PostTypes\Post

  • New ::setOption method to set the post thumbnail size and CSS classes.
  • New ::withThumbnail method to get the post thumbnail. This is so the thumbnail can be conditionally loaded to stop it loading whenever you create a new post class.
  • New ::thumbnail method for displaying the thumbnail HTML.

Example of setting, getting and displaying the thumbnail:

use OOPWP\PostTypes\Post;

$post_obj = new Post(get_the_ID());

$post_obj
    ->setOption('thumbnail_size', 'post-thumbnail')
    ->setOption('thumbnail_classes', 'test-1 test-2')
    ->withThumbnail();

echo $post_obj->thumbnail();

v2.0.0

20 Jul 22:38
Compare
Choose a tag to compare

This release includes:

  • Carbon date support.
  • Conditional loading for WordPress data.
  • New namespace for OOPWP\PostTypes\Post.
  • Heavily optimised object usage after creation.

v1.1.0

16 Jun 15:14
0701857
Compare
Choose a tag to compare
Merge pull request #2 from SebKay/users

Users

v1.0.0

16 Jun 14:32
b42c121
Compare
Choose a tag to compare
Update README.md