Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
ACFW Lite Improvements
Browse files Browse the repository at this point in the history
Hide ACFW custom field locations field when ACFW_LITE is active.
  • Loading branch information
daronspence committed Mar 1, 2015
1 parent 411c630 commit 6d1b74a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example-code.php
@@ -1,6 +1,6 @@
<?php
/**
* Put this stuff in your functions.php file if necessary
* Put this stuff in your functions.php file if necessary.
*/


Expand Down
8 changes: 8 additions & 0 deletions includes/admin-setup.php
Expand Up @@ -304,4 +304,12 @@ function acfw_plugins_page_info(){
echo "<tr class='plugin-update-tr'><td class='plugin-update' colspan='{$wp_list_table->get_column_count()}'><div style='background: #fcf3ef; padding: 5px 8px; border-left: 4px solid crimson;'><span class='dashicons dashicons-dismiss' style='color: crimson; margin-right: 13px;'></span>{$acfw_message}</div></td></tr>";
}


add_action('admin_head', 'acfw_lite_css');
function acfw_lite_css(){

if ( defined('ACFW_LITE') )
echo "<style> .acf-field[data-key*='acfw']{ display: none; } </style>";

}
// End of File

0 comments on commit 6d1b74a

Please sign in to comment.