Skip to content
Snippets Groups Projects

Utility methods for supported post types and statuses

Merged Erick Hitter requested to merge develop into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -172,7 +172,7 @@ class ETH_Simple_Shortlinks {
@@ -172,7 +172,7 @@ class ETH_Simple_Shortlinks {
* Provide the shortlink in row actions for easy access
* Provide the shortlink in row actions for easy access
*/
*/
public function filter_row_actions( $actions, $post ) {
public function filter_row_actions( $actions, $post ) {
if ( ! in_array( get_post_type( $post ), $this->supported_post_types ) ) {
if ( ! in_array( get_post_type( $post ), $this->supported_post_types ) || ! in_array( get_post_status( $post ), $this->supported_post_statuses ) ) {
return $actions;
return $actions;
}
}
Loading