Skip to content

Commit

Permalink
Fix/Readme (#4)
Browse files Browse the repository at this point in the history
* Re-add readme.txt for WordPress since it's breaking on code markdown.

* Remove Beerpay.

* Add deploy assets/readme Action
  • Loading branch information
thefrosty authored Nov 29, 2024
1 parent 2af2c5c commit 070b2a5
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/wporg-update-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Deploy assets to WordPress.org"

on:
push:
branches:
- master

jobs:
trunk:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
IGNORE_OTHER_FILES: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: featured-image-column
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,3 @@ Follow the steps below to install the plugin.

### 0.3
Code cleanup, compatibility updates for WordPress 4.8, quick edit no longer collapses the columns and the settings actually toggle post_types on/off!
## Support on Beerpay
Hey dude! Help me out for a couple of :beers:!

[![Beerpay](https://beerpay.io/thefrosty/wp-featured-image-column/badge.svg?style=beer-square)](https://beerpay.io/thefrosty/wp-featured-image-column) [![Beerpay](https://beerpay.io/thefrosty/wp-featured-image-column/make-wish.svg?style=flat-square)](https://beerpay.io/thefrosty/wp-featured-image-column?focus=wish)
109 changes: 109 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
=== Featured Image Column ===
Contributors: austyfrosty, DH-Shredder, MartyThornley, chrisjean,
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XQRHECLPQ46TE
Tags: featured image, admin, column
Requires at least: 6.2
Tested up to: 6.7.1
Stable tag: trunk
Requires PHP: 8.0

Adds a column to any post type edit screen with the featured image if it exists.

== Description ==

As of version 0.2.2 you can select which post types you'd like to have the image column.
It simply adds a column before the title (far left) the show's the posts featured image if it's supported and exists.

Want to change the default image? Simply filter you own image by using `featured_image_column_default_image`
or filter your own CSS by using the `featured_image_column_css` filter hook.

= Example actions/filters =

**Add support for a custom default image**
`
function my_custom_featured_image_column_image( $image ) {
if ( !has_post_thumbnail() ) {
return trailingslashit( get_stylesheet_directory_uri() ) . 'images/featured-image.png';
}

return $image;
}
add_filter( 'featured_image_column_default_image', 'my_custom_featured_image_column_image' );
`

**Remove support for post types** *Use the `featured_image_column_init` action hook for your filter.*
`
function frosty_featured_image_column_init_func() {
add_filter( 'featured_image_column_post_types', 'frosty_featured_image_column_remove_post_types', 11 ); // Remove
}
add_action( 'featured_image_column_init', 'frosty_featured_image_column_init_func' );

function frosty_featured_image_column_remove_post_types( $post_types ) {
foreach( $post_types as $key => $post_type ) {
if ( 'post-type' === $post_type ) // Post type you'd like removed. Ex: 'post' or 'page'
unset( $post_types[$key] );
}
return $post_types;
}
`

For more question please visit [https://austin.passy.co](https://austin.passy.co/wordpress-plugins/featured-image-column/)

== Installation ==

Follow the steps below to install the plugin.

1. Upload the `featured-image-column` directory to the /wp-content/plugins/ directory. OR click add new plugin in your WordPress admin.
2. Activate the plugin through the 'Plugins' menu in WordPress.

== Screenshots ==

1. Post edit.php screen.

== Changelog ==

= Version 1.1.0 (2024/11/29) =

* Tested up WordPress 6.7.1.
* Added GitHub Release -> WordPress.org Action.
* Resolve 1.0.0 Release call_user_func errors and incorrect file path(s).

= Version 1.0.0 (2023/11/16) =

* Update code for PHP >= 8.0.
* Update for WordPress >= 6.2.

= Version 0.3.2 (06/26/17) =

* Missed short-array syntax updates for PHP < 5.4 compatibility.

= Version 0.3.1 (06/26/17) =

* Fix for PHP versions < 5.4.
* Please update your PHP versions!

= Version 0.3 (06/25/17) =

* Code cleanup.
* Tested with WordPress 4.8 new minimum version requirement set to 4.4.
* Image columns work correctly when using Quick Edit now (no more collapsing)!
* Removed use of additional wp_cache.s
* Toggling setting controls for post types works again (turn on/off featured image column per post type).

= Version 0.2.3 (04/4/15) =

* Make sure get_the_image() returns the cached image. /ht Djules

= Version 0.2.2 (12/3/14) =

* Wow. Exactly one year to the dau since the last update!
* Added settings to turn on/off featured image column per post type.
* Added pre load hook `featured_image_column_init`.
* Better custom post type column manager filter.

= Version 0.2.1 (12/3/13) =

== Upgrade Notice ==

= 1.1.1 =
Required PHP >= 8.0

0 comments on commit 070b2a5

Please sign in to comment.