components/Helpers.php 1 location
|
@@ 173-190 (lines=18) @@
|
| 170 |
|
* |
| 171 |
|
* @since 2.0.5 |
| 172 |
|
*/ |
| 173 |
|
function remove_row_actions ( $actions, $post ) { |
| 174 |
|
global $current_screen; |
| 175 |
|
|
| 176 |
|
if ( !is_object( $current_screen ) || $this->object_type != $current_screen->post_type ) |
| 177 |
|
return $actions; |
| 178 |
|
|
| 179 |
|
if ( isset( $actions[ 'view' ] ) ) |
| 180 |
|
unset( $actions[ 'view' ] ); |
| 181 |
|
|
| 182 |
|
if ( isset( $actions[ 'inline hide-if-no-js' ] ) ) |
| 183 |
|
unset( $actions[ 'inline hide-if-no-js' ] ); |
| 184 |
|
|
| 185 |
|
// W3 Total Cache |
| 186 |
|
if ( isset( $actions[ 'pgcache_purge' ] ) ) |
| 187 |
|
unset( $actions[ 'pgcache_purge' ] ); |
| 188 |
|
|
| 189 |
|
return $actions; |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
/** |
| 193 |
|
* Remove unused bulk actions |
components/Pages.php 1 location
|
@@ 275-292 (lines=18) @@
|
| 272 |
|
* |
| 273 |
|
* @return |
| 274 |
|
*/ |
| 275 |
|
public function remove_row_actions( $actions, $post ) { |
| 276 |
|
|
| 277 |
|
global $current_screen; |
| 278 |
|
|
| 279 |
|
if ( ! is_object( $current_screen ) || $this->object_type != $current_screen->post_type ) { |
| 280 |
|
return $actions; |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
if ( isset( $actions['view'] ) ) { |
| 284 |
|
unset( $actions['view'] ); |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
if ( isset( $actions['inline hide-if-no-js'] ) ) { |
| 288 |
|
unset( $actions['inline hide-if-no-js'] ); |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
// W3 Total Cache |
| 292 |
|
if ( isset( $actions['pgcache_purge'] ) ) { |
| 293 |
|
unset( $actions['pgcache_purge'] ); |
| 294 |
|
} |
| 295 |
|
|
components/Templates/Templates.php 1 location
|
@@ 245-262 (lines=18) @@
|
| 242 |
|
* |
| 243 |
|
* @return |
| 244 |
|
*/ |
| 245 |
|
public function remove_row_actions( $actions, $post ) { |
| 246 |
|
|
| 247 |
|
global $current_screen; |
| 248 |
|
|
| 249 |
|
if ( ! is_object( $current_screen ) || $this->object_type != $current_screen->post_type ) { |
| 250 |
|
return $actions; |
| 251 |
|
} |
| 252 |
|
|
| 253 |
|
if ( isset( $actions['view'] ) ) { |
| 254 |
|
unset( $actions['view'] ); |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
if ( isset( $actions['inline hide-if-no-js'] ) ) { |
| 258 |
|
unset( $actions['inline hide-if-no-js'] ); |
| 259 |
|
} |
| 260 |
|
|
| 261 |
|
// W3 Total Cache |
| 262 |
|
if ( isset( $actions['pgcache_purge'] ) ) { |
| 263 |
|
unset( $actions['pgcache_purge'] ); |
| 264 |
|
} |
| 265 |
|
|