Initial commit — migración Joomla→WordPress feadulta.org
Incluye: mu-plugins custom (fea-homepage, carta-semana), scripts de migración/traducción/deploy, documentación de auditoría, análisis de cartas y HTML de evangelios exportados desde Joomla. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
global $wpdb;
|
||||
$table_name = $wpdb->prefix . 'fbv';
|
||||
$folder_name = 'Libros';
|
||||
$parent_id = 0;
|
||||
$created_by = 1;
|
||||
|
||||
$existing = $wpdb->get_row( $wpdb->prepare( "SELECT id FROM $table_name WHERE name = %s AND parent = %d", $folder_name, $parent_id ) );
|
||||
|
||||
if ( $existing ) {
|
||||
echo "Folder 'Libros' already exists with ID: " . $existing->id;
|
||||
} else {
|
||||
$wpdb->insert(
|
||||
$table_name,
|
||||
array(
|
||||
'name' => $folder_name,
|
||||
'parent' => $parent_id,
|
||||
'type' => 0,
|
||||
'ord' => 0,
|
||||
'created_by' => $created_by
|
||||
)
|
||||
);
|
||||
echo "Created folder 'Libros' with ID: " . $wpdb->insert_id;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user