read()
read(string $order = null,string $orderby = null): array<mixed,integer>
Fetch all attachment ids currently in this folder. It uses the default WP_Query to fetch the ids. You can also use the WP_Query like: ```php $query = new \WP_Query([ 'post_status' => 'inherit', 'post_type' => 'attachment', 'rml_folder' => 4, 'rml_include_children' => false // (optional) Include files of subfolder, you have to use wp_rml_all_children_sql_supported(false, 'function') for checking support ]); ```
Parameters
string | $order | The order "ASC" or "DESC" |
string | $orderby | Use "rml" to get ids ordered by custom order |
Returns
array<mixed,integer> —Post ids